/*
Theme Name: Dark SEO Pro
Theme URI: boost-exclen.ru
Author: evgen
Description: Fast, dark, SEO-optimized theme. Critical CSS only.
Version: 1.3 (Critical Split)
Text Domain: dark-seo-pro
*/

:root {
    /* Основные цвета */
    --bg-body: #0f0f11;       
    --bg-card: #19191c;       
    --bg-header: rgba(15, 15, 17, 0.85); 
    
    /* Текст */
    --text-main: #ffffff;
    --text-muted: #9ca3af;    
    
    /* Акценты */
    --accent-primary: #7B61FF; 
    --accent-hover: #6548e6;
    --accent-gradient: linear-gradient(92deg, #7B61FF 0%, #5235E8 100%);
    
    /* UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;        
    
    /* Размеры */
    --container-width: 1200px;
    --gap: 20px;
}

/* --- ШРИФТЫ (Оптимизация WOFF2 + SWAP) --- */

/* Основной (Regular) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400;
    font-display: swap; /* Текст показывается сразу */
    src: url('assets/fonts/Manrope-Regular.woff2') format('woff2'),
         url('assets/fonts/Manrope-Regular.ttf') format('truetype');
}

/* Кнопки (SemiBold) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/Manrope-SemiBold.woff2') format('woff2'),
         url('assets/fonts/Manrope-SemiBold.ttf') format('truetype');
}

/* Твой ExtraLight (Заголовки или Тонкий текст) */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 200; /* ExtraLight это обычно 200 */
    font-display: swap;
    src: url('assets/fonts/Manrope-ExtraLight.woff2') format('woff2'),
         url('assets/fonts/Manrope-ExtraLight.ttf') format('truetype');
}
/* --- СБРОС (RESET) --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-body); color: var(--text-main); font-family: 'Manrope', sans-serif; line-height: 1.6; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
main { flex: 1; } /* Прижимаем футер к низу */

/* Глобальные кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; background: var(--accent-gradient); color: #fff;
    border-radius: var(--radius-sm); font-weight: 600; border: none;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(123, 97, 255, 0.3); }
.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-full { width: 100%; }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 var(--gap); width: 100%; }

/* =========================================
   HEADER & NAVIGATION (DESKTOP)
   ========================================= */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0; transition: all 0.3s ease;
    background: rgba(15, 15, 17, 0.75);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header.scrolled { padding: 10px 0; background: rgba(15, 15, 17, 0.98); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.header-container { display: flex; justify-content: space-between; align-items: center; }

/* Логотип */
.site-branding { display: flex; align-items: center; border-right: 1px solid rgba(255, 255, 255, 0.1); padding-right: 30px; margin-right: 10px; height: 40px; }
.text-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; color: #fff; text-transform: uppercase; display: flex; align-items: center; }
.cursor-default { cursor: default; }

/* МЕНЮ (1 уровень) */
.main-navigation { flex-grow: 1; padding-left: 20px; }
.main-navigation > ul { display: flex; list-style: none; gap: 20px; margin: 0; padding: 0; align-items: center; }
.main-navigation li { position: relative; }

.main-navigation a {
    font-size: 14px; font-weight: 600; color: var(--text-muted);
    padding: 8px 10px; position: relative; display: block;
}

/* Стрелочки и Ховеры ПК */
.menu-item-has-children > a { padding-right: 25px; } 
.menu-item-has-children > a::before {
    content: ''; position: absolute; right: 5px; top: 50%; width: 0; height: 0;
    border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 4px solid var(--text-muted);
    transform: translateY(-50%); transition: 0.3s;
}
.menu-item-has-children:hover > a::before { border-top-color: #fff; transform: translateY(-50%) rotate(180deg); }

/* Полоска снизу */
.main-navigation > ul > li > a::after {
    content: ''; position: absolute; width: 0%; height: 2px; bottom: 0; left: 0;
    background-color: var(--accent-primary); transition: width 0.3s ease; box-shadow: 0 0 8px var(--accent-primary);
}
.main-navigation > ul > li:hover > a::after { width: 100%; }
.main-navigation > ul > li:hover > a { color: #fff; }

/* Активный пункт */
.main-navigation .current-menu-item > a { color: #fff; }
.main-navigation .current-menu-item > a::after { width: 100%; } 

/* Выпадающее меню (ПК) */
.main-navigation ul ul {
    position: absolute; top: 100%; left: 0;
    background: #19191c; border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    min-width: 220px; padding: 10px 0;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease; z-index: 1100;
}
.main-navigation li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul li { display: block; margin: 0; }
.main-navigation ul ul a { padding: 10px 20px; font-size: 14px; color: var(--text-muted); }
.main-navigation ul ul a:hover { background: rgba(255,255,255,0.05); color: #fff; padding-left: 25px; }
.main-navigation ul ul a::after { display: none; }
.main-navigation ul ul .menu-item-has-children > a::before { right: 15px; transform: translateY(-50%) rotate(-90deg); }

/* Header Right */
.header-actions { display: flex; align-items: center; gap: 12px; }
.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); transition: 0.3s;
}
.social-icon:hover { background: var(--accent-primary); transform: translateY(-2px); }
.header-btn { margin-left: 10px; }

/* Скрываем мобильные */
.mobile-menu-footer { display: none; } 
.menu-toggle { display: none; } 

/* Хлебные крошки */
/* --- BREADCRUMBS (NEW) --- */
.breadcrumbs-wrapper {
    padding-top: 100px;
    padding-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
    position: relative;
    z-index: 5; /* Чтобы были поверх фона */
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.breadcrumbs a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.breadcrumbs .sep {
    color: rgba(255,255,255,0.2);
    font-size: 12px;
}

.breadcrumbs .current {
    color: #fff;
    opacity: 0.7;
}

/* =========================================
   FOOTER (Critical)
   ========================================= */
.site-footer { background: var(--bg-card); padding: 60px 0 30px; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-title { font-size: 18px; margin-bottom: 20px; color: #fff; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 15px; }
.footer-links a:hover { color: var(--accent-primary); padding-left: 5px; }
.contact-link { display: block; color: #fff; font-weight: 600; margin-bottom: 10px; }

/* =========================================
   MODAL & FORMS (Critical)
   ========================================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 12, 0.9); backdrop-filter: blur(8px); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-wrap { background: #19191c; width: 100%; max-width: 500px; padding: 40px; border-radius: var(--radius-lg); position: relative; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 30px 60px rgba(0,0,0,0.5); transform: translateY(20px); transition: transform 0.3s ease; overflow: hidden; }
.modal-overlay.active .modal-wrap { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: var(--text-muted); font-size: 28px; cursor: pointer; z-index: 2; }
.modal-close:hover { color: #fff; }
.modal-title { font-size: 26px; color: #fff; margin-bottom: 10px; font-weight: 700; }
.modal-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 25px; }

.form-group { margin-bottom: 15px; position: relative; }
.form-input { width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; transition: 0.3s; }
.form-input:focus { outline: none; border-color: var(--accent-primary); background: rgba(255, 255, 255, 0.06); }
.form-input::placeholder { color: #555; }
.radio-select { display: flex; gap: 15px; margin-bottom: 10px; }
.radio-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text-muted); }
.radio-label input { accent-color: var(--accent-primary); }
.btn-submit { margin-top: 10px; position: relative; }
.loader { display: none; width: 20px; height: 20px; border: 2px solid #fff; border-bottom-color: transparent; border-radius: 50%; animation: rotate 1s linear infinite; position: absolute; }
.btn.loading .btn-text { opacity: 0; }
.btn.loading .loader { display: block; }
@keyframes rotate { 0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);} }
.honeypot-field { display: none !important; }
.form-policy { font-size: 11px; color: #555; margin-top: 15px; text-align: center; }
.form-result { margin-top: 15px; text-align: center; display: none; }
.form-result.success { color: #2ecc71; }
.form-result.error { color: #e74c3c; }
.modal-glow { position: absolute; top: -50px; left: -50px; width: 200px; height: 200px; background: var(--accent-primary); filter: blur(80px); opacity: 0.2; pointer-events: none; }

/* Checkbox */
.form-checkbox-wrapper { margin-bottom: 20px; margin-top: -5px; }
.checkbox-label { display: flex; align-items: flex-start; cursor: pointer; font-size: 12px; color: var(--text-muted); line-height: 1.4; user-select: none; }
.checkbox-label input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.custom-check { display: inline-block; width: 20px; min-width: 20px; height: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; margin-right: 10px; position: relative; transition: all 0.2s ease; }
.checkbox-label:hover input ~ .custom-check { border-color: var(--accent-primary); }
.checkbox-label input:checked ~ .custom-check { background: var(--accent-primary); border-color: var(--accent-primary); }
.custom-check::after { content: ""; position: absolute; display: none; left: 6px; top: 2px; width: 6px; height: 11px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-label input:checked ~ .custom-check::after { display: block; }
.checkbox-text a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); }
.checkbox-text a:hover { color: var(--accent-primary); text-decoration-color: var(--accent-primary); }

/* =========================================
   ADAPTIVE & MOBILE MENU (Critical < 992px)
   ========================================= */
@media (max-width: 992px) {
    /* Бургер */
    .menu-toggle {
        display: block !important; background: transparent; border: none; cursor: pointer;
        padding: 0; width: 30px; height: 20px; position: relative; z-index: 1200; margin-left: 15px;
    }
    .menu-toggle span {
        display: block; width: 100%; height: 2px; background-color: #fff; border-radius: 2px;
        position: absolute; left: 0; transition: all 0.3s ease;
    }
    .menu-toggle span:nth-child(1) { top: 0; }
    .menu-toggle span:nth-child(2) { top: 9px; }
    .menu-toggle span:nth-child(3) { top: 18px; }
    .menu-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--accent-primary); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--accent-primary); }

    /* Скрытие ПК */
    .desktop-only { display: none !important; }
    .site-branding { border-right: none; padding-right: 0; margin-right: 0; }

    /* Мобильное Меню */
    .main-navigation {
        position: fixed; top: 0; right: -100%; width: 85%; max-width: 320px; height: 100vh;
        background: #151518; padding: 90px 30px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 0 50px rgba(0,0,0,0.8); z-index: 1000;
        display: flex; flex-direction: column; overflow-y: auto;
        border-left: 1px solid rgba(255,255,255,0.05); padding-left: 0;
    }
    .main-navigation.toggled { right: 0; }
    .main-navigation ul { flex-direction: column; gap: 0; width: 100%; }

    /* Пункты */
    .main-navigation a {
        font-size: 18px; font-weight: 600; color: #fff;
        padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
        border-radius: 0; background: transparent !important;
        display: flex; justify-content: space-between; align-items: center;
    }
    .menu-item-has-children > a::before { display: none; } /* Скрываем ПК стрелку */

    /* Подменю (Мобильное) */
    .main-navigation ul ul {
        display: none; position: static; opacity: 1; visibility: visible;
        transform: none; box-shadow: none; background: rgba(255,255,255,0.03); border: none;
        padding-left: 0; min-width: 100%; flex-direction: column; margin-top: 5px; margin-bottom: 10px;
    }
    .main-navigation li.dropdown-open > ul { display: flex; }
    .main-navigation ul ul a {
        padding-left: 20px !important; font-size: 16px; color: var(--text-muted);
        border-bottom: none; padding-top: 10px; padding-bottom: 10px;
    }

    /* Стрелка-переключатель */
    .dropdown-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 40px; height: 100%; margin-left: auto;
        border-left: 1px solid rgba(255,255,255,0.05);
        color: var(--text-muted); font-size: 18px; cursor: pointer;
    }
    .dropdown-toggle::after { content: '▼'; font-size: 12px; transition: 0.3s; }
    .dropdown-open > .dropdown-toggle::after { transform: rotate(180deg); color: var(--accent-primary); }

    /* Кнопка внутри меню */
    .mobile-menu-footer { display: block !important; margin-top: 40px; padding: 0 30px; }
    .mobile-cta-btn {
        display: flex; align-items: center; justify-content: center;
        width: 100%; padding: 16px;
        background: var(--accent-gradient); color: #fff; border-radius: 12px;
        font-weight: 600; font-size: 16px;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .social-icon { width: 34px; height: 34px; }
    .social-icon svg { width: 18px; height: 18px; }
}
/* --- ARTICLE HERO (FULL WIDTH) --- */
.article-hero {
    position: relative;
    width: 100vw;
    height: 80vh; /* Высота на 80% экрана */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(-50vw + 50%); /* Хак для full-width внутри контейнера */
    margin-bottom: 60px;
    margin-top: -100px; /* Компенсация отступа body, чтобы ушло под шапку */
    padding-top: 100px; /* Чтобы текст не наезжал на меню */
}

/* Если картинки нет - градиент */
.article-hero.no-bg {
    background: radial-gradient(circle at center, #2a2a35 0%, #0f0f11 100%);
    height: 50vh;
}

/* Затемнение */
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15,15,17,0.4) 0%, rgba(15,15,17,0.8) 80%, var(--bg-body) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative; z-index: 2;
    text-align: center; max-width: 900px;
}

.article-meta {
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px; letter-spacing: 2px;
    font-weight: 700;
}
.article-meta .meta-cat a { color: var(--accent-primary); }
.article-meta .meta-date { color: rgba(255,255,255,0.7); margin-left: 10px; }

.article-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Тень для читаемости */
    margin-bottom: 30px;
}

.article-author { color: rgba(255,255,255,0.8); font-size: 16px; }

.scroll-down-hint {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center;
    color: rgba(255,255,255,0.6); font-size: 12px; text-transform: uppercase;
    animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform:translate(-50%,0);} 40% {transform:translate(-50%, -10px);} 60% {transform:translate(-50%, -5px);} }