* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f1720;
    color: #e6edf3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== УМЕНЬШЕННАЯ ШАПКА ========== */
.site-header {
    width: 100%;
    background: #0f1720;
    padding: 12px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.2s;
}

.logo-img:hover {
    opacity: 0.85;
}

/* Десктопная ссылка "Новости" — минималистичный стиль */
.desktop-news {
    display: none;
}

.desktop-news a {
    color: #8b949e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
}

.desktop-news a:hover {
    color: #e6edf3;
    background: rgba(88, 166, 255, 0.08);
}

/* Бургер-меню (только для мобильных) */
.burger-menu {
    display: flex;
    align-items: center;
}

.burger-icon {
    cursor: pointer;
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #8b949e;
    border-radius: 2px;
    transition: all 0.2s;
}

.burger-icon:hover span {
    background: #e6edf3;
}

/* Мобильное меню (полноэкранное) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
}

.mobile-menu a {
    color: #e6edf3;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    padding: 16px 0;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #58a6ff;
}

.mobile-menu.show {
    display: flex;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 36px;
    cursor: pointer;
    color: #8b949e;
    transition: color 0.2s;
}

.close-menu:hover {
    color: #e6edf3;
}

@media (min-width: 769px) {
    .burger-menu {
        display: none;
    }
    .desktop-news {
        display: block;
    }
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 20px;
}

.container {
    width: 100%;
    max-width: 460px;
    background: #161b22;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

h1 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
}

.sub {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 24px;
}

.stats {
    font-size: 13px;
    color: #8b949e;
    margin-bottom: 20px;
}

.stats strong {
    color: #e6edf3;
    font-weight: 500;
}

button {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #238636;
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: #2ea043;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.result-area {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #0d1117;
    display: none;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
}

.proxy-link {
    display: block;
    font-family: monospace;
    font-size: 12px;
    color: #58a6ff;
    word-break: break-all;
    margin-bottom: 12px;
    padding: 8px;
    background: #0b141a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.proxy-link:hover {
    background: #1e2a36;
}

.flex-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.connect-button {
    background: #238636;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: auto;
    transition: background 0.2s;
}

.connect-button:hover {
    background: #2ea043;
}

.attempt-info {
    font-size: 12px;
    color: #8b949e;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.status {
    margin-top: 16px;
    font-size: 13px;
    color: #8b949e;
}

.site-footer {
    width: 100%;
    background: #0f1720;
    padding: 16px 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 11px;
    color: #6e7681;
    margin-bottom: 6px;
}

.update-time {
    font-size: 11px;
    color: #6e7681;
}

.banner {
    max-width: 460px;
    margin: 0 auto;
    background: #161b22;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.top-banner {
    margin-bottom: 20px;
    padding: 12px 16px;
}

.bottom-banner {
    margin-top: 20px;
    padding: 12px 16px;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 14px;
    font-weight: 500;
    color: #e6edf3;
    margin-bottom: 4px;
}

.banner-desc {
    font-size: 11px;
    color: #8b949e;
    line-height: 1.4;
}

.banner-button {
    background: #238636;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

.banner-button:hover {
    background: #2ea043;
}

.faq-section {
    margin-top: 20px;
    text-align: left;
}

.faq-item {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #e6edf3;
    padding: 12px 0;
}

.faq-question span {
    font-size: 18px;
    color: #8b949e;
    transition: transform 0.2s;
}

.faq-item.active .faq-question span {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer-inner {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
    padding-bottom: 12px;
    padding-left: 8px;
}

/* SEO текстовый блок */
.seo-text {
    max-width: 460px;
    margin: 30px auto 20px;
    padding: 24px;
    background: #161b22;
    border-radius: 20px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 14px;
    line-height: 1.6;
    color: #c9d1d9;
}

.seo-text h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    color: #e6edf3;
}

.seo-text h2:first-child {
    margin-top: 0;
}

.seo-text p, .seo-text ul, .seo-text ol {
    margin-bottom: 16px;
    color: #b0b8c5;
}

.seo-text ul, .seo-text ol {
    padding-left: 24px;
}

.seo-text li {
    margin-bottom: 8px;
}

.seo-text a {
    color: #58a6ff;
    text-decoration: none;
}

.seo-text a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .banner-button {
        white-space: normal;
        padding: 4px 10px;
        font-size: 11px;
    }
    .banner-title {
        font-size: 13px;
    }
    .banner-desc {
        font-size: 10px;
    }
    .faq-question {
        font-size: 13px;
    }
    .faq-answer-inner {
        font-size: 12px;
    }
    .logo-img {
        height: 36px;
    }
    .site-header {
        padding: 10px 16px;
    }
    .seo-text {
        padding: 18px;
        font-size: 13px;
    }
    .seo-text h2 {
        font-size: 16px;
    }
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
