*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    background-color: #050507;
    color: #94a3b8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 60px 20px;
}
.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #10101a;
    margin-bottom: 40px;
}
.header-text {
    flex-grow: 1;
}
.logo {
    font-size: 20pt;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.5px;
}
.tagline {
    font-size: 10pt;
    color: #475569;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Анимированная CSS Планета Сети */
.planet-wrapper {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.planet {
    width: 44px;
    height: 44px;
    background: radial-gradient(circle at 30% 30%, #1e293b 0%, #09090f 70%);
    border: 1px solid #2e3d52;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px dashed rgba(71, 85, 105, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.o-1 { width: 64px; height: 30px; transform: translate(-50%, -50%) rotate(15deg); animation: rotateOrbit 12s linear infinite; }
.o-2 { width: 84px; height: 40px; transform: translate(-50%, -50%) rotate(-35deg); animation: rotateOrbit 18s linear infinite reverse; }
.o-3 { width: 104px; height: 50px; transform: translate(-50%, -50%) rotate(70deg); animation: rotateOrbit 25s linear infinite; }

.satellite {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
}
.s-1 { top: 0; left: 50%; }
.s-2 { bottom: 0; left: 30%; background: #0ea5e9; box-shadow: 0 0 8px #0ea5e9; }
.s-3 { top: 50%; right: 0; background: #10b981; box-shadow: 0 0 8px #10b981; }

@keyframes rotateOrbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.interactive-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    background: #0a0a0f;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid #10101a;
    animation: fadeIn 0.6s ease-out;
}
.panel-title {
    font-size: 9pt;
    color: #475569;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.filter-btn {
    background: transparent;
    border: 1px solid #161624;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 9pt;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-btn:hover {
    border-color: #2e2e48;
    color: #cbd5e1;
}
.filter-btn.active {
    background: #11111f;
    border-color: #2563eb;
    color: #3b82f6;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.1);
}
.bento-grid {
    display: block;
}
.bento-row {
    display: table;
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 20px;
    margin-bottom: -20px;
}
.bento-cell {
    display: table-cell;
    background: #0a0a0f;
    border: 1px solid #10101a;
    border-radius: 16px;
    padding: 30px;
    vertical-align: top;
    transition: border-color 0.3s ease, transform 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}
.bento-cell:hover {
    border-color: #1a1a2e;
}
.w-2-3 { width: 64%; }
.w-1-3 { width: 36%; }
.w-1-2 { width: 50%; }

h2 {
    font-size: 10.5pt;
    margin-top: 0;
    margin-bottom: 25px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h3 {
    font-size: 12pt;
    margin-top: 0;
    margin-bottom: 8px;
    color: #f8fafc;
    font-weight: 600;
}
p {
    margin: 0 0 15px 0;
    color: #94a3b8;
    font-size: 10pt;
}
p:last-child {
    margin-bottom: 0;
}
.section-desc {
    margin-bottom: 25px;
    color: #475569;
}
.transport-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 8pt;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}
.protocol-block.hysteria .transport-badge {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.05);
    border-color: rgba(14, 165, 233, 0.1);
}
.manifesto {
    color: #10b981;
    font-size: 12pt;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.matrix-bg {
    background: linear-gradient(180deg, #0a0a0f 0%, #07070a 100%);
}
.sub-text {
    font-size: 9.5pt;
    color: #475569;
}
.geo-item {
    margin-bottom: 14px;
    font-size: 9.5pt;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-indicator {
    font-family: monospace;
    font-size: 7.5pt;
    text-transform: uppercase;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: auto;
}
.status-online {
    background: rgba(16, 185, 129, 0.06);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}
.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8pt;
    font-weight: 600;
}
.badge-geo {
    background: #11111f;
    border: 1px solid #161626;
    color: #64748b;
    font-family: monospace;
}
.protocol-block {
    background: #07070a;
    border: 1px solid #10101a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.protocol-block:last-child {
    margin-bottom: 0;
}
.protocol-block.info-mode {
    border-style: dashed;
    background: transparent;
}
.protocol-block.info-mode h3 {
    color: #64748b;
    font-size: 11pt;
}
.protocol-block.dimmed {
    opacity: 0.12;
    transform: scale(0.99);
}
.client-card {
    background: #07070a;
    border: 1px solid #10101a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}
.client-card:last-child {
    margin-bottom: 0;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.card-header h3 {
    margin-bottom: 0;
}
.choice-badge {
    font-size: 7.5pt;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #eab308;
    background: rgba(234, 179, 8, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(234, 179, 8, 0.1);
}
.instruction-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.instruction-step:last-child {
    margin-bottom: 0;
}
.step-num {
    font-family: monospace;
    font-size: 14pt;
    font-weight: 700;
    color: #1e1e2f;
    line-height: 1;
    padding-top: 2px;
}
.step-text {
    font-size: 10pt;
    color: #94a3b8;
}
.troubleshooting-box {
    margin-top: 20px;
    background: #08080d;
    border: 1px dashed #1c1c2d;
    padding: 12px;
    border-radius: 8px;
    font-size: 8.5pt;
    color: #475569;
}
.footer {
    text-align: center;
    padding-top: 50px;
    margin-top: 60px;
    border-top: 1px solid #10101a;
}
.footer-link {
    font-size: 9.5pt;
    color: #475569;
    text-decoration: none;
    font-family: monospace;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    display: inline-block;
}
.footer-link:hover {
    color: #f8fafc;
    background: #0a0a14;
    border-color: #161626;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .header-grid {
        flex-direction: row;
        align-items: center;
    }
    .planet-wrapper {
        width: 80px;
        height: 80px;
    }
    .container {
        padding: 30px 15px;
    }
    .interactive-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 15px;
    }
    .panel-title {
        text-align: center;
        margin-bottom: 4px;
    }
    .bento-row {
        display: block;
        margin-bottom: 0;
    }
    .bento-cell {
        display: block;
        width: 100% !important;
        margin-bottom: 20px;
        padding: 20px;
    }
}
