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

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(1200px at 20% -10%, #1f3a8a33, transparent),
                radial-gradient(800px at 90% 10%, #16a34a22, transparent),
                #0b0f14;
    background-attachment: fixed;
    background-size: cover;
    color: #e6edf3;
    display: flex;
    flex-direction: column;
}

/* Запрещаем любому элементу вылезать за пределы */
* {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* ===== HEADER ===== */
.site-header {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 20, 0.8);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

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

.logo-img {
    height: 64px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: opacity 0.2s;
}

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

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.burger-menu {
    display: flex;
    align-items: center;
}

.burger-icon {
    cursor: pointer;
    width: 22px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
    border: none;
    padding: 0;
}

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

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 0.3s ease;
}

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

.mobile-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
}

.mobile-menu a:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
    transform: scale(1.05);
}

.close-menu {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    cursor: pointer;
    color: #c9d1d9;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.desktop-nav {
    display: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.content-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ===== CARDS & BANNERS ===== */
.card {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 1.25rem 1rem;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
    transition: transform 0.25s, box-shadow 0.25s;
    overflow-x: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
}

.banner {
    background: rgba(22, 27, 34, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 1rem;
    overflow-x: hidden;
}

.top-banner {
    margin-bottom: 0.75rem;
}

.bottom-banner {
    margin-top: 0.75rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 0.25rem;
}

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

.banner-button {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    border: none;
    padding: 0.375rem 0.875rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.banner-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.sub {
    color: #8b949e;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}

.stats {
    font-size: 0.8125rem;
    color: #8b949e;
    margin-bottom: 1.25rem;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 8px 20px rgba(34,197,94,0.25);
    font-size: 0.9375rem;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(34,197,94,0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESULT AREA ===== */
.result-area {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.8rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(255,255,255,.05);
    animation: fadeSlide 0.3s ease;
    overflow-x: hidden;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.proxy-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.nav-arrow {
    background: rgba(88, 166, 255, 0.1);
    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 0.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.2rem;
    color: #58a6ff;
    flex-shrink: 0;
}

.nav-arrow:hover:not(:disabled) {
    background: rgba(88, 166, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(88, 166, 255, 0.4);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.proxy-link {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: #58a6ff;
    padding: 0.6rem;
    background: rgba(88,166,255,.08);
    border-radius: 0.6rem;
    border: 1px solid rgba(88,166,255,.2);
    cursor: pointer;
    transition: all 0.2s;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: center;
}

.proxy-link:hover {
    background: rgba(88,166,255,.15);
    transform: scale(1.02);
}

.btn-connect {
    margin-top: 0.7rem;
    background: linear-gradient(135deg, #238636, #1a6b2c);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    width: 100%;
    transition: all 0.2s;
}

.btn-connect:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #2ea043, #1f7a33);
}

.attempt-info {
    font-size: 0.7rem;
    color: #6e7681;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

/* ===== СТАТУС ОБНОВЛЕНИЯ ===== */
.update-status {
    margin-top: 1rem;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.02);
}

.status-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.5; transform: scale(1); }
}

/* ===== TRUST BADGES (блок доверия) ===== */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.trust-item {
    font-size: 0.7rem;
    color: #8b949e;
    background: rgba(255,255,255,0.03);
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    letter-spacing: 0.01em;
}

/* ===== SEO TEXT ===== */
.seo-text {
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.seo-text h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #e6edf3;
}

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

.seo-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #e6edf3;
}

.seo-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.75rem 0 0.25rem 0;
    color: #c9d1d9;
}

.seo-text p {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #8b949e;
    margin-bottom: 0.75rem;
}

.seo-text ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.seo-text li {
    font-size: 0.8rem;
    color: #8b949e;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

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

/* ===== FAQ ACCORDION ===== */
.faq-section {
    margin-top: 0.5rem;
    text-align: left;
}

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e6edf3;
    padding: 0.875rem 0;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #58a6ff;
}

.faq-question span {
    font-size: 1.125rem;
    color: #8b949e;
    transition: transform 0.25s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer-inner {
    font-size: 0.8125rem;
    color: #8b949e;
    line-height: 1.5;
    padding-bottom: 0.875rem;
    padding-left: 0.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    color: #6e7681;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(11, 15, 20, 0.95);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 0.25rem 0;
}

.copyright {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

.update-time {
    font-size: 0.65rem;
    color: #6e7681;
    margin: 0.25rem 0;
}

/* ===== LOADER ===== */
.loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .card {
        padding: 1rem;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .banner-button {
        white-space: normal;
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .logo-img {
        height: 48px;
        width: auto;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .header-container {
        padding: 0;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    .content-wrapper {
        max-width: 100%;
        padding: 0 0.25rem;
    }
    
    .trust-badges {
        gap: 0.5rem;
    }
    
    .trust-item {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
    
    .seo-text h2 {
        font-size: 1rem;
    }
    
    .seo-text h3 {
        font-size: 0.9rem;
    }
    
    .seo-text p, .seo-text li {
        font-size: 0.75rem;
    }
    
    .faq-question {
        font-size: 0.8rem;
    }
    
    .faq-answer-inner {
        font-size: 0.75rem;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
