:root {
    --primary: #20c15a;
    --primary-dark: #1a9f4a;
    --accent: #ff5050;
    --text: #FFFFFF;
    --bg: #121212;
    --bg-light: #1e1e1e;
    --bg-lighter: #2a2a2a;
    --border: #333333;
    --warning-bg: rgba(255, 80, 80, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

header {
    background-color: var(--bg-light);
    padding: 2rem 1rem;
    text-align: center;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 2rem;
}

.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    max-height: 100px;
    max-width: 100%;
    filter: drop-shadow(0 0 5px rgba(32, 193, 90, 0.5));
}

h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 600;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.4rem;
    margin: 1rem 0 0.8rem;
    color: var(--text);
}

.tagline {
    color: var(--text);
    opacity: 0.85;
    font-size: 1.1rem;
    font-weight: 300;
}

main {
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

section {
    margin-bottom: 2.5rem;
    background-color: var(--bg-light);
    padding: 1.8rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.content-box {
    padding: 1.2rem;
    background-color: var(--bg-lighter);
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 3px solid var(--primary);
}

.key-info {
    background-color: rgba(32, 193, 90, 0.1);
    padding: 1.2rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    border: 1px dashed var(--primary);
}

.key-info ul {
    list-style-type: none;
}

.key-info li {
    margin-bottom: 0.6rem;
    padding-left: 1.5rem;
    position: relative;
}

.key-info li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.warning {
    background-color: var(--warning-bg);
    padding: 1rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent);
    margin: 1rem 0;
    font-weight: 500;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.pros ul, .cons ul {
    list-style-type: none;
    margin-top: 0.5rem;
}

.pros li:before {
    content: "✓";
    color: var(--primary);
    margin-right: 0.5rem;
}

.cons li:before {
    content: "✗";
    color: var(--accent);
    margin-right: 0.5rem;
}

.mirror-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.mirror-link {
    display: block;
    padding: 1.2rem;
    background-color: var(--bg-lighter);
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-align: center;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
}

.mirror-link:hover {
    background-color: var(--primary);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(32, 193, 90, 0.3);
}

.no-mirrors {
    color: var(--accent);
    text-align: center;
    padding: 1.5rem;
    font-style: italic;
}

footer {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: var(--bg-light);
    margin-top: 3rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

.disclaimer {
    color: var(--accent);
    margin-top: 1rem;
    font-size: 0.85rem;
}

/* Lists styling */
ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

.restrictions {
    margin: 1rem 0 1rem 2rem;
}

.restrictions li {
    position: relative;
    padding-left: 1.5rem;
}

.restrictions li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Responsive design */
@media (max-width: 768px) {
    .pros-cons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mirror-list {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    section {
        padding: 1.4rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .content-box {
        padding: 1rem;
    }
}

/* ===== Добавьте эти стили в конец файла style.css ===== */

/* Featured box styles */
.featured-box {
    background-color: var(--primary-dark);
    padding: 1.8rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(32, 193, 90, 0.3);
}

.featured-content {
    background-color: var(--bg-light);
    border-left: 3px solid var(--accent);
}

.official-links {
    list-style-type: none;
    margin: 1rem 0;
}

.official-links li {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background-color: var(--bg-lighter);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.official-links li:hover {
    background-color: rgba(32, 193, 90, 0.2);
}

.official-link {
    color: var(--primary);
    text-decoration: none;
    font-family: monospace;
    word-break: break-all;
    display: block;
}

.official-link:hover {
    text-decoration: underline;
}

/* FAQ Section styles */
.faq-section {
    margin-top: 2.5rem;
}

.faq-item {
    margin-bottom: 1.8rem;
    background-color: var(--bg-lighter);
    padding: 1.2rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.faq-item h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.faq-answer {
    padding-left: 0.5rem;
}

.faq-answer ol, .faq-answer ul {
    margin: 0.8rem 0 0.8rem 1.5rem;
}

/* Breadcrumb styles */
.breadcrumb {
    margin: 1rem auto 0;
    max-width: 1100px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

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

/* Footer links */
.footer-links {
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Hidden elements for SEO */
.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation for interactive elements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.mirror-link:first-child {
    animation: pulse 2s infinite;
    position: relative;
}

.mirror-link:first-child::after {
    content: "RECOMMENDED";
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
    font-family: sans-serif;
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }
    
    .mirror-link, .official-link {
        color: #0066cc;
        page-break-inside: avoid;
    }
    
    header, section, footer {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .no-print {
        display: none;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #f0f0f0;
        --bg: #121212;
        --bg-light: #1e1e1e;
        --bg-lighter: #2a2a2a;
    }
}

/* Accessibility focus styles */
a:focus, button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state for dynamic content */
.loading {
    position: relative;
    min-height: 100px;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Tooltip styles */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-lighter);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 100;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .faq-item {
        padding: 1rem;
    }
    
    .official-links li {
        padding: 0.6rem;
    }
    
    .featured-box {
        padding: 1.2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ===== Стили для текстовых ссылок ===== */
.content-box a,
.faq-answer a,
.key-info a,
p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(32, 193, 90, 0.3);
    padding-bottom: 1px;
    transition: all 0.2s ease;
    word-break: break-word;
}

.content-box a:hover,
.faq-answer a:hover,
.key-info a:hover,
p a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

/* Особые стили для ссылок в FAQ */
.faq-answer a {
    font-weight: 600;
    border-bottom-width: 2px;
}

/* Стили для ссылок в предупреждениях */
.warning a {
    color: var(--accent);
    border-bottom-color: rgba(255, 80, 80, 0.3);
}

.warning a:hover {
    color: #ff3030;
    border-bottom-color: var(--accent);
}

/* Стили для ссылок в списках */
ul a, ol a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(32, 193, 90, 0.3);
}

ul a:hover, ol a:hover {
    text-decoration-color: var(--primary);
}

/* Специальные стили для ссылок с onion-адресами */
a[href*=".onion"] {
    font-family: monospace;
    word-break: break-all;
}

/* Стили для ссылок в футере */
footer a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary);
    padding-bottom: 1px;
}

footer a:hover {
    color: var(--text);
    border-bottom-style: solid;
}