:root {
    --bg: #0d0e11;
    --text-main: #e6e8ec;
    --text-muted: #8a919e;
    --border: #232730;
    --accent: #e6e8ec;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 720px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

header {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #ffffff;
    text-transform: uppercase;
}

main {
    margin: 4rem 0;
}

h1 {
    font-size: 1.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

.proxy-section {
    display: flex;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.qr-box {
    width: 400px;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    background: #14171f;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    flex-shrink: 0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.qr-box:hover {
    border-color: #525866;
    transform: scale(1.1);
}

.instructions ol {
    list-style: none;
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.instructions ol li {
    margin-bottom: 0.8rem; /* Добавили воздух между строками */
}

.instructions ol li:last-child {
    margin-bottom: 0;
}

.links {
    display: flex;
    gap: 2rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.links a:hover {
    color: #ffffff;
}

footer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    body { padding: 2.5rem 1.5rem; }
    main { margin: 3rem 0; }
    .proxy-section { flex-direction: column; gap: 2rem; }
    .qr-box { width: 100%; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #14171f;
    border: 1px solid var(--border);
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    border-radius: 6px;
    color: var(--text-main);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.modal-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fff;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.donate-details {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.donate-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.donate-details p:last-child {
    margin-bottom: 0;
}

.donate-details code {
    color: #e6e8ec;
    font-family: monospace;
    word-break: break-all;
}

.modal-close {
    width: 100%;
    padding: 0.8rem;
    background: var(--text-main);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal-close:hover {
    opacity: 0.9;
}