/* --- Variables & Reset --- */
:root {
    --primary-color: #2563eb; /* Современный синий */
    --primary-dark: #1e40af;
    --accent-color: #7c3aed; /* Фиолетовый градиент */
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #ffffff;
    --bg-light: #f9fafb;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-body);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    letter-spacing: 1px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo span { color: var(--primary-color); }

.nav-list { display: flex; gap: 30px; }
.nav-link { font-weight: 500; font-size: 15px; color: var(--text-main); position: relative; }
.nav-link:hover { color: var(--primary-color); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: var(--transition);
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: white;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}
.btn-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background: var(--text-main); margin: 5px 0; transition: var(--transition); }

/* --- Hero --- */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg-elements .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

.circle-1 { width: 400px; height: 400px; background: #60a5fa; top: -100px; right: -50px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* --- Sections General --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; font-weight: 700; margin-bottom: 15px; position: relative; display: inline-block; }
.section-header p { color: var(--text-muted); }
.bg-light-alt { background-color: var(--bg-light); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

/* --- About & Mirrors --- */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.text-block p { margin-bottom: 20px; font-size: 17px; color: var(--text-muted); }

.features-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s, box-shadow 0.3s;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
}
.feature-card h3 { font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 15px; }

/* --- Access Section (Onion) --- */
.access-section { text-align: center; background: linear-gradient(180deg, var(--bg-body) 0%, rgba(37,99,235,0.03) 100%); }
.onion-link-wrapper {
    background: #111827;
    padding: 15px 25px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 15px;
    box-shadow: var(--shadow-md);
    max-width: 100%;
    overflow-x: auto;
}
.onion-link-wrapper code {
    color: #4ade80;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
}
.btn-copy { background: #374151; color: white; padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-copy:hover { background: #4b5563; }
.small-note { font-size: 13px; color: var(--text-muted); }

/* --- Features List (Keywords) --- */
.info-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.col { padding: 30px; border-left: 4px solid var(--primary-color); background: var(--bg-light); border-radius: 0 12px 12px 0; }
.col h3 { margin-bottom: 15px; }

/* --- Stats --- */
.stats-section { background: #111827; color: white; padding: 60px 0; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 48px; font-weight: 800; background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #9ca3af; margin-top: 5px; }

/* --- FAQ --- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}
.accordion-header::after { content: '+'; font-size: 24px; color: var(--primary-color); transition: transform 0.3s; }
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-body { height: 0; overflow: hidden; transition: height 0.3s ease; }
.accordion-body p { padding-bottom: 20px; color: var(--text-muted); }

/* --- Contacts --- */
.contact-wrapper { display: flex; gap: 60px; align-items: flex-start; }
.contact-info { flex: 1; }
.contact-list li { margin-bottom: 15px; font-size: 18px; }
.contact-form-container { flex: 1; background: var(--bg-card); padding: 40px; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); }

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    background: var(--bg-light);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-full { width: 100%; }

/* --- Footer --- */
.footer { background: #f3f4f6; padding: 40px 0; border-top: 1px solid var(--border-color); margin-top: 80px; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-weight: 700; font-size: 18px; }
.footer-copy { color: var(--text-muted); font-size: 14px; }

/* --- Scroll Top --- */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}
#scrollTopBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* --- Animations Classes --- */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos].scrolled-in { opacity: 1; transform: translate(0); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .content-grid, .features-wrapper, .info-columns, .contact-wrapper { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .hero-title { font-size: 40px; }
    .nav-menu {
        position: fixed; top: 70px; left: 0; width: 100%; background: white;
        padding: 20px; border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%); transition: transform 0.3s ease;
        z-index: 90;
    }
    .nav-menu.active { transform: translateY(0); }
    .nav-list { flex-direction: column; gap: 15px; text-align: center; }
    .mobile-menu-toggle { display: block; }
    .header-actions .btn { display: none; } /* Hide button on mobile in header, menu logic simplification */
}