* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafafa;
    --bg-card: #ffffff;
    --accent: #10b981;
    --accent-dark: #059669;
    --accent-light: #d1fae5;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --danger: #dc2626;
    --danger-light: #fee2e2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

header {
    background: var(--bg-card);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ===== Блок IP сервера ===== */
.ip-block {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.ip-block .ip-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ip-block .ip-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    font-family: 'Consolas', monospace;
}

.copy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: var(--accent-dark);
}

.copy-btn.copied {
    background: var(--accent-dark);
}

/* ===== Статистика ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-card .stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Зеркала сервера ===== */
.mirrors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mirrors-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mirror-chip {
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mirror-chip:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    background: var(--accent-light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* ===== Режимы ===== */
.modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s;
    text-align: center;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.12);
}

.mode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mode-card:hover .mode-icon {
    background: var(--accent);
    transform: scale(1.05);
}

.mode-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--accent-dark);
    transition: all 0.3s;
}

.mode-card:hover .mode-icon svg {
    stroke: #fff;
}

.mode-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.mode-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Как начать играть ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

.step-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== Соцсети ===== */
.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1.6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.12);
}

/* ===== Баннер ===== */
.footer-banner {
    background: var(--bg-card);
    border: 2px dashed var(--accent);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--text);
    font-weight: 700;
}

.footer-banner p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.donate-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
}

.donate-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ===== Футер ===== */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-col .footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--accent);
}

.footer-ip {
    font-family: 'Consolas', monospace;
    font-weight: 700;
    color: var(--accent-dark);
    font-size: 1.05rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== Тост ===== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-dark);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
    opacity: 0;
    transition: all 0.4s;
    z-index: 200;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== Правила ===== */
.rules-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.rules-box h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
    color: var(--accent-dark);
}

.rules-box h2:first-child {
    margin-top: 0;
}

.rules-box ul,
.rules-box ol {
    margin: 0 0 1rem 1.5rem;
}

.rules-box li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.rules-box strong {
    color: var(--text);
}

/* ===== Магазин ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16, 185, 129, 0.1);
}

.product-card .product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-card .product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 1rem;
}

.product-card .product-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.product-card .product-price small {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.product-card form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fca5a5;
}

.alert-error ul {
    margin: 0.5rem 0 0 1.25rem;
}

.alert-success {
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid #6ee7b7;
}

/* ===== Страница оплаты ===== */
.pay-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2.5rem;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.pay-card .qr-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.pay-card .qr-wrap img {
    display: block;
    width: 240px;
    height: 240px;
}

.order-status {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-paid,
.status-delivered { background: var(--accent-light); color: var(--accent-dark); }
.status-canceled,
.status-failed { background: var(--danger-light); color: var(--danger); }

.order-meta {
    text-align: left;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    font-size: 0.95rem;
}

.order-meta div {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    gap: 1rem;
}

.order-meta span:first-child {
    color: var(--text-muted);
}

.order-meta span:last-child {
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 2.5rem 1rem;
    }

    .modes {
        grid-template-columns: 1fr;
    }

    .ip-block {
        flex-direction: column;
        width: 100%;
    }

    .socials {
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .rules-box {
        padding: 1.5rem;
    }

    .pay-card {
        padding: 1.5rem;
    }
}

/* ===== Страница правил ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent-dark);
    gap: 0.75rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
}

.page-header h1 span {
    color: var(--accent);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.notice {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.notice p {
    font-size: 1rem;
    color: var(--text);
}

.rules-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.rules-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rules-section h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--accent-dark);
    font-weight: 700;
}

.rules-section ul {
    list-style: none;
    padding-left: 0;
}

.rules-section li {
    padding: 0.75rem 0;
    color: var(--text);
    line-height: 1.7;
    border-bottom: 1px solid var(--border);
}

.rules-section li:last-child {
    border-bottom: none;
}

.rules-section li strong {
    color: var(--accent-dark);
    font-weight: 700;
}

.mode-rules {
    background: linear-gradient(135deg, var(--accent-light) 0%, #ecfdf5 100%);
    border: 2px solid var(--accent);
}

.mode-rules h2 {
    color: var(--accent-dark);
}

.mode-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.penalty-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.penalty-table th {
    background: var(--accent);
    color: #fff;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.penalty-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.penalty-table tr:last-child td {
    border-bottom: none;
}

.penalty-table tr:hover {
    background: var(--accent-light);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .rules-section {
        padding: 1.5rem;
    }

    .penalty-table {
        font-size: 0.85rem;
    }

    .penalty-table th,
    .penalty-table td {
        padding: 0.75rem 0.5rem;
    }
}
