:root {
    --bg-body: #080808;
    --bg-card: #121212;
    --bg-accent: #1a1a1a;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --primary: #6a1b9a; /* Темный фиолетовый */
    --accent: #9c27b0; /* Яркий фиолетовый */
    --gradient: linear-gradient(90deg, #6a1b9a 0%, #ab47bc 100%);
    --border: #333;
    --font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.7;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- HEADER CSS --- */

.header-wrapper {
    background-color: #080808;
    border-bottom: 1px solid #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 12px;
    height: 12px;
    background-color: #9c27b0;
    border-radius: 50%;
    box-shadow: 0 0 8px #9c27b0;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: #a0a0a0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}


.hero {
    /* Добавь padding-top, если хедер перекрывает контент */
    padding-top: 110px; 
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(106, 27, 154, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #d1c4e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-subtitle strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Ecology */
.ecology-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.ecology-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.ecology-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-block h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.ecology-sidebar ul li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.2rem;
}

.ecology-sidebar ul li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.ecology-image-box {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 10px;
}

.ecology-image-box img {
    width: 100%;
    transition: 0.5s;
}

.ecology-image-box:hover img {
    transform: scale(1.03);
}

/* Markets */
.market-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.market-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.market-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-body h4 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Guide */
.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.guide-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.guide-image {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.step-item {
    position: relative;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-item h4 {
    margin-bottom: 0.5rem;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    margin-bottom: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contacts */
.contact-box {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-accent));
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-details p {
    background: rgba(0,0,0,0.3);
    padding: 10px 20px;
    border-radius: 4px;
}

/* Footer */
footer {
    background: #000;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content, .ecology-grid, .guide-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

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

    .desktop-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #080808;
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        border-bottom: 1px solid #333;
    }

    .desktop-nav.active {
        display: flex;
    }

    .desktop-nav a {
        display: block;
        padding: 1rem 2rem;
        color: #fff;
        border-bottom: 1px solid #1a1a1a;
    }
}

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem 2rem;
    }

    .steps-list {
        grid-template-columns: 1fr;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}