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

body {
    font-family: 'Courier New', monospace;
    background: #303948;
    color: #FFFFFF;
    overflow-x: hidden;
    height: 100vh;
    line-height: 1.6;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(60, 190, 242, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(60, 190, 242, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(60, 190, 242, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    gap: 30px;
}

.logo-section {
    margin-bottom: 10px;
}

.logo {
    width: 165px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(60, 190, 242, 0.3));
}

.terminal {
    width: 90%;
    max-width: 900px;
    background: rgba(48, 57, 72, 0.95);
    border: 1px solid #3cbef2;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(60, 190, 242, 0.2);
    backdrop-filter: blur(10px);
    max-height: 85vh;
    overflow-y: auto;
}

.terminal-header {
    background: #252a33;
    padding: 12px 15px;
    border-bottom: 1px solid #3cbef2;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.close { background: #ff5f57; }
.minimize { background: #ffbd2e; }
.maximize { background: #28ca42; }

.terminal-title {
    color: #3cbef2;
    font-size: 14px;
    font-weight: bold;
}

.terminal-body {
    padding: 20px;
}

.command-line {
    margin-bottom: 20px;
    opacity: 0.8;
}

.prompt {
    color: #3cbef2;
    font-weight: bold;
}

.command {
    color: #FFFFFF;
}

.output {
    margin-bottom: 20px;
}

.status-line {
    margin-bottom: 8px;
    color: #FFFFFF;
}

.status-line.success {
    color: #28ca42;
}

.content-section {
    margin: 20px 0;
    padding: 15px;
    border-left: 2px solid #3cbef2;
    background: rgba(60, 190, 242, 0.05);
    border-radius: 0 8px 8px 0;
}

.content-section.warning {
    border-left-color: #ffbd2e;
    background: rgba(255, 189, 46, 0.05);
}

.section-title {
    color: #3cbef2;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.content-section.warning .section-title {
    color: #ffbd2e;
}

.content-text {
    color: #e0e0e0;
    font-size: 14px;
    text-align: justify;
}

.links-container {
    margin: 15px 0;
    border-left: 2px solid #3cbef2;
    padding-left: 15px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-item:hover {
    background: rgba(60, 190, 242, 0.1);
}

.link-number {
    color: #3cbef2;
    font-weight: bold;
    min-width: 30px;
}

.mirror-link {
    color: #FFFFFF;
    text-decoration: none;
    word-break: break-all;
    flex: 1;
}

.mirror-link:hover {
    color: #3cbef2;
}

.link-status {
    color: #28ca42;
    font-size: 12px;
    font-weight: bold;
}

.instruction {
    color: #3cbef2;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

.input-line {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    position: sticky;
    bottom: 0;
    background: rgba(48, 57, 72, 0.9);
    padding: 10px 0;
}

.command-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    flex: 1;
}

.command-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cursor {
    color: #3cbef2;
    animation: blink 1s infinite;
}

.hint {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.hint-text {
    margin-bottom: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal::-webkit-scrollbar {
    width: 8px;
}

.terminal::-webkit-scrollbar-track {
    background: #252a33;
}

.terminal::-webkit-scrollbar-thumb {
    background: #3cbef2;
    border-radius: 4px;
}

.terminal::-webkit-scrollbar-thumb:hover {
    background: #2a9dc7;
}

@media (max-width: 768px) {
    .terminal {
        width: 95%;
    }
    
    .link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .link-status {
        align-self: flex-end;
    }
    
    .content-text {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 15px;
    }
}

.seo-links-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(48, 57, 72, 0.8);
    border: 1px solid rgba(60, 190, 242, 0.3);
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
}

.seo-content-block {
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.7;
    text-align: justify;
}

.seo-content-block h2 {
    color: #3cbef2;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-content-block h3 {
    color: #3cbef2;
    font-size: 16px;
    margin: 18px 0 12px 0;
    font-weight: bold;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.resource-category {
    padding: 20px;
    background: rgba(60, 190, 242, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(60, 190, 242, 0.2);
    transition: all 0.3s ease;
}

.resource-category:hover {
    background: rgba(60, 190, 242, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(60, 190, 242, 0.1);
}

.resource-category p {
    color: #c0c0c0;
    font-size: 14px;
    text-align: justify;
    line-height: 1.6;
}

/* Видимые и доступные ссылки для SEO */
.seo-visible-links {
    margin-top: 30px;
    padding: 20px;
    background: rgba(60, 190, 242, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(60, 190, 242, 0.15);
}

.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.seo-link-item {
    padding: 12px 15px;
    background: rgba(60, 190, 242, 0.1);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.seo-link-item a {
    color: #3cbef2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.seo-link-item:hover {
    background: rgba(60, 190, 242, 0.15);
    transform: translateY(-1px);
}

.seo-link-item a:hover {
    color: #ffffff;
}

.seo-links-title {
    color: #3cbef2;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .seo-links-section {
        padding: 20px;
        margin: 25px 0;
    }
    
    .resource-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-content-block h2 {
        font-size: 18px;
    }
    
    .seo-content-block h3 {
        font-size: 15px;
    }
    
    .seo-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .seo-link-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .seo-links-section {
        padding: 15px;
    }
    
    .resource-category {
        padding: 15px;
    }
    
    .seo-content-block {
        font-size: 14px;
    }
}