/* static/css/cyber_style.css */
/* ТОЧНАЯ КОПИЯ 6-ГО ВАРИАНТА - НЕОНОВАЯ КИБЕР-РАБСТВО */

:root {
    --neon-blue: #00f3ff;
    --neon-purple: #9d00ff;
    --neon-pink: #ff00c8;
    --neon-green: #00ff88;
    --cyber-dark: #0a0a0a;
    --cyber-grid: #1a1a1a;
    --cyber-light: #222222;
    --text-cyber: #ffffff;
    --glow: 0 0 10px;


    --primary-cyan: #00f3ff;
    --primary-cyan-dim: rgba(0, 243, 255, 0.15);
    --panel-bg: #161925; 
    --border-color: #242938; 
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
}

/* ===== ОСНОВНОЙ ФОН ===== */
body {
    background-color: var(--cyber-dark);
    background-image: 
        linear-gradient(var(--cyber-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-grid) 1px, transparent 1px);
    background-size: 50px 50px;
    color: var(--text-cyber);
    font-family: 'Exo 2', 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 1.2rem;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(157, 0, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6,
p, span, div, li, a, label {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 4rem;
}

/* Цифровой дождь */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    background: linear-gradient(transparent 95%, rgba(0, 243, 255, 0.1) 100%);
    animation: rain 20s linear infinite;
}

@keyframes rain {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

/* ===== ГЛОБАЛЬНЫЙ КИБЕР-СКРОЛЛБАР ===== */
* {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) rgba(0, 243, 255, 0.1);
    box-sizing: border-box;
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 243, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
    box-shadow: 0 0 5px var(--neon-blue);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}

/* ===== ХЕДЕР ===== */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99999;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    margin-bottom: 0 !important;
}

/* Цифровая цепь */
.digital-chain {
    opacity: 0.1;
    pointer-events: none;
}

.mobile {
        display: none;
    }

.desktop {
        display: block;
    }

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    .digital-chain {
        display: none;
    }
    .mobile {
        display: block;
    }
    .desktop {
        display: none;
    }


}

.chain-bit {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--neon-blue);
    margin: 0 5px;
    position: relative;
    animation: pulse 2s infinite;
}

.chain-bit:nth-child(2n) {
    animation-delay: 0.5s;
}

.chain-bit:nth-child(3n) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 5px var(--neon-blue), 
                   inset 0 0 5px var(--neon-blue);
    }
    50% { 
        box-shadow: 0 0 15px var(--neon-blue), 
                   inset 0 0 10px var(--neon-blue);
    }
}

/* Логотип */
.navbar-brand {
    color: white !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 900 !important;
    font-size: 1.8rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.brand-logo-cyber {
    width: 45px;
    height: 45px;
    background: var(--cyber-dark);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.brand-logo-cyber::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent, 
        var(--neon-blue), 
        transparent 30%
    );
    animation: rotate 3s linear infinite;
}

.brand-logo-cyber span {
    position: relative;
    z-index: 1;
    background: var(--cyber-dark);
    padding: 6px 1px;
    border-radius: inherit;
    font-size: 1rem;
    letter-spacing: -0.5px;
}
@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.navbar-brand:hover .brand-logo-cyber {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.3);
}

.brand-text-cyber {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

/* Навигационные ссылки */
.nav-link {
    color: #aaa !important;
    font-weight: 600;
    margin: 0 0.3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 243, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.nav-link:hover {
    color: white !important;
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link.active {
    color: var(--neon-blue) !important;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Dropdown */
.dropdown-menu {
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: terminalAppear 0.3s ease;
}




@keyframes terminalAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    color: #ccc;
    padding: 0.3rem 1.2rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
    font-family: 'Consolas', monospace;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    white-space: normal;
}

.dropdown-item::before {
    content: '>';
    position: absolute;
    left: 5px;
    color: var(--neon-blue);
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    color: white;
    background: rgba(0, 243, 255, 0.1);
    padding-left: 2rem;
}

.dropdown-item:hover::before {
    opacity: 1;
    left: 10px;
}

/* Цифровой ошейник пользователя - ТОЧНО КАК В 6-М ВАРИАНТЕ */
.user-collar {
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--neon-purple);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    position: relative;
    overflow: hidden;
    min-width: 320px;
}

.user-collar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(157, 0, 255, 0.1),
        transparent
    );
    animation: rotate 3s linear infinite;
}

.user-avatar-cyber {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, var(--cyber-dark), #222);
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-weight: bold;
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.user-info {
    position: relative;
    z-index: 1;
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
}

.user-role {
    font-size: 0.7rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', monospace;
}

.user-name {
    font-weight: 600;
    color: white;
}

.collar-control {
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.collar-control:hover {
    background: var(--neon-pink);
    color: black;
    box-shadow: 0 0 15px var(--neon-pink);
}

/* Бейдж лимитов в шапке */
.limits-badge {
    background-color: #ff6b6b;
    color: white;
    font-size: 1em;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Цвета для разных тарифов (опционально) */
.user-role {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Если хотите цветные тарифы */
.user-role:contains("МЕСТНЫЙ ЖИТЕЛЬ") { color: #6c757d; }
.user-role:contains("ФЕОДАЛ") { color: #28a745; }
.user-role:contains("ИМПЕРАТОР") { color: #ffc107; }


.contacts {
    display: flex ;
    border-left: 1px solid;
    margin-left: 20px;
    align-items: center;
}


/* Равномерное распределение пунктов меню на десктопе */
@media (min-width: 992px) {
    /* Превращаем navbar-nav в flex-контейнер с равномерными отступами */

    .navbar-nav {
        display: flex;
        justify-content: space-evenly;
        gap: 0;
        width: 100%;
    }
    
    /* Каждый пункт занимает равную долю пространства */
    .navbar-nav .nav-item {
        flex: 1 1 0;
        text-align: center;
        min-width: 0; /* Позволяет сжиматься, если нужно */
    }
    
    /* Ссылка растягивается на весь li */
    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    /* Выпадающее меню выравниваем по центру кнопки */
    .navbar-nav .dropdown-menu {
        width: 100%;
        text-align: left;
        min-width: max-content;
    }
}


@media (max-width: 992px) {
    .nav-link {
        padding: 1.2rem;
    }
    .navbar-nav {
        margin-top: 2rem;
    }
    .dropdown-menu {
        border: none;
        box-shadow: none;
    }
    
    .contacts {
        margin: 2rem 0rem;
        font-size: 1rem;
    }

}




/* ===== ФУТЕР КИБЕРПАНК ===== */
.footer {
    background: rgba(10, 10, 15, 0.95) !important;
    border-top: 1px solid rgba(0, 243, 255, 0.3) !important;
    color: #666 !important;
    font-family: 'Exo 2', sans-serif !important;
    padding: 0 !important;
    margin-top: auto !important;
}

.footer-cyber-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

/* Сетка футера */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Колонка футера */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Логотип футера */
.footer-logo-section {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: var(--cyber-dark);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.footer-logo-icon::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--neon-blue),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-version {
    color: var(--neon-blue);
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-slogan {
    padding: 8px 12px;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--neon-blue);
    border-radius: 4px;
}

.slogan-text {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Заголовки групп */
.footer-group-title {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    position: relative;
}

.footer-group-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--neon-blue);
}

/* Ссылки футера */
.footer-link {
    color: #aaa !important;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.3s ease;
    display: block;
    padding: 0.4rem 0;
    position: relative;
    font-family: 'Exo 2', sans-serif;
    line-height: 1.4;
}

.footer-link::before {
    content: '▹';
    position: absolute;
    left: -15px;
    color: var(--neon-blue);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.footer-link:hover {
    color: white !important;
    transform: translateX(5px);
}

.footer-link:hover::before {
    opacity: 1;
    left: -20px;
}

/* Контакты */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    transform: translateX(3px);
}

.footer-contact-item i {
    color: var(--neon-blue);
    font-size: 1rem;
    width: 20px;
}

.footer-contact-link,
.footer-contact-text {
    color: #ccc !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Exo 2', sans-serif;
}

.footer-contact-link:hover {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

/* Соцсети */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.social-link:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    color: white;
}

/* Кнопка перезвоните */
.footer-callback-btn {
    width: 100%;
    padding: 12px;
    margin-top: 1rem;
    background: rgba(255, 0, 200, 0.1);
    border: 2px solid var(--neon-pink);
    border-radius: 8px;
    color: var(--neon-pink);
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-callback-btn:hover {
    background: var(--neon-pink);
    color: black;
    box-shadow: 0 0 20px rgba(255, 0, 200, 0.4);
    transform: translateY(-2px);
}

.footer-callback-btn i {
    font-size: 1rem;
}

/* Нижняя часть футера */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.digital-line {
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--neon-blue),
        var(--neon-purple),
        var(--neon-pink),
        var(--neon-green),
        transparent
    );
    margin-bottom: 1.5rem;
    position: relative;
    animation: linePulse 3s infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    color: #888;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.status-text {
    color: var(--neon-green);
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

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

/* ===== АДАПТИВНОСТЬ ФУТЕРА ===== */
@media (max-width: 1400px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .footer-cyber-container {
        padding: 3rem 1.5rem 1.5rem;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .footer-logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .footer-cyber-container {
        padding: 2.5rem 1rem 1rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-copyright {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .footer-contact-item i {
        margin-left: 5px;
    }
}

@media (max-width: 576px) {
    .footer-cyber-container {
        padding: 2rem 0.8rem 0.8rem;
    }
    
    .footer-group-title {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }
    
    .footer-link {
        font-size: 0.85rem;
    }
    
    .copyright-text {
        font-size: 0.8rem;
    }
    
    .footer-callback-btn {
        font-size: 0.8rem;
        padding: 10px;
    }
}

/* Дополнительные стили для групп ссылок */
.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Эффект при наведении на всю колонку */
.footer-col:hover .footer-link:not(:hover) {
    opacity: 0.7;
}

.footer-col:hover .footer-group-title {
    color: var(--neon-purple);
}

.footer-col:hover .footer-group-title::after {
    background: var(--neon-purple);
}
/* ===== ДОМАШНЯЯ СТРАНИЦА ===== */
.hero-cyber {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    max-width: 1200px;
    position: relative;
    overflow: hidden;
}

.hero-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
}

.status-line {
    display: flex;
    align-items: center;
    margin: 2rem 0;
    font-family: 'Orbitron', monospace;
    color: var(--neon-green);
    font-size: 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--neon-blue);
    border-radius: 50%;
    margin-right: 10px;
    animation: blink 1s infinite;
}

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

/* Стили для информации о тарифе в статусной строке */
.status-line span .neon-text {
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
}

/* Дополнительно: если хотите выделить лимиты */
.status-line span .limits-info {
    color: #ff6b6b;
    font-weight: bold;
}


/* ===== ДАШБОРД - ТОЧНО КАК В 6-М ВАРИАНТЕ ===== */
.dashboard-cyber {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    max-width: 1400px;
    position: relative;
    overflow: hidden;
}

.dashboard-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
}

/* Карточки */
.grid-cyber {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-cyber {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}



.card-cyber:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.2);
}

.card-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--neon-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-cyber:hover::before {
    transform: scaleX(1);
}

.card-icon-cyber {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.card-cyber:hover .card-icon-cyber {
    background: rgba(0, 243, 255, 0.2);
    transform: rotate(15deg);
}





/* ===== КНОПКИ ===== */
.btn-cyber {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Orbitron', monospace;
}

.btn-cyber:hover {
    background: var(--neon-blue);
    color: black;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: rgba(157, 0, 255, 0.1) !important;
    color: var(--neon-purple) !important;
    border: 2px solid var(--neon-purple) !important;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    margin-top: auto;
}

.btn-primary:hover {
    background: var(--neon-purple) !important;
    color: white !important;
    box-shadow: 0 0 20px var(--neon-purple) !important;
    transform: translateY(-2px) !important;
}



.btn-accent {
    background: linear-gradient(135deg, #ffcc00 0%, #ff9900 100%);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 50%;
    text-align: center;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 204, 0, 1);
    color: white;
}

.btn-accent:active {
    transform: translateY(1px);
}

@media (max-width: 768px) {
    .btn-accent {
        font-size: 1rem;
        width: 80%;
    }

}
/* ===== ЗАГОЛОВКИ ===== */


.main-heading {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    font-family: 'Orbitron', monospace;
    max-width: 60%;
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 100%;
    margin-bottom: 4rem;
}

.main-screen-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-evenly;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.small-heading {
    font-size: 0.8rem;
    border: 1px solid #0ec9ef85;
    display: inline-block;
    color: #0ec9ef85;
    padding: 5px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

h1.small-heading::before {
    content: "#";
}

.lead {
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.card-cyber h5 {
    color: white !important;
    margin-bottom: 1rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.card-cyber h3 {
    color: white !important;
    margin-bottom: 1rem !important;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

.card-cyber .card-text {
    color: #aaa !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
}

/* ===== ГРУППА ИНСТРУМЕНТОВ ===== */
.tools-group-cyber {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(157, 0, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.tools-group-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
}

.tools-group-cyber h5 {
    color: var(--neon-purple) !important;
    font-family: 'Orbitron', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
}

/* ===== ФУТЕР - ТОЧНО КАК В 6-М ВАРИАНТЕ ===== */
.footer {
    background: rgba(10, 10, 10, 0.9) !important;
    border-top: 1px solid rgba(0, 243, 255, 0.2) !important;
    color: #666 !important;
    font-family: 'Orbitron', monospace !important;
    font-size: 0.9rem !important;
    padding: 2rem 0 !important;
    margin-top: auto !important;
}

/* ===== ИНСТРУМЕНТЫ (SEMANTICS CLEANER) ===== */
.tool-container {
    background: rgba(20, 20, 20, 0.9) !important;
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    min-height: calc(100vh - 200px);
    position: relative;
    overflow: hidden;
}

.tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
}

.text-area-container {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    min-height: 30vh;     /* минимальная высота при загрузке */
    transition: all 0.3s ease;
    position: relative;
    resize: vertical;
    overflow: visible;    /* меняем auto на visible */
    height: auto;         /* добавляем auto */
}

.text-area {
    width: 100%;
    min-height: 200px;    /* фиксированная минимальная высота вместо 100% */
    border: none;
    resize: vertical !important;  /* включаем resize у textarea */
    font-family: 'Consolas', 'Monaco', monospace;
    background: transparent;
    color: var(--text-cyber);
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
}
.text-area::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-style: italic;
}

.tools-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.tools-row::-webkit-scrollbar {
    height: 4px;
}

.tools-row::-webkit-scrollbar-track {
    background: rgba(0, 243, 255, 0.1);
    border-radius: 2px;
}

.tools-row::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 2px;
}

.btn-custom {
    margin: 5px;
    padding: 10px 20px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.status-bar {
    background: rgba(20, 20, 20, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    animation: statusPulse 3s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===== ФОРМЫ (LOGIN, REGISTER) ===== */
.form-container-cyber {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 6rem auto 2rem auto;
    max-width: 500px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
}

.form-control {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    color: var(--text-cyber) !important;
    border-radius: 8px !important;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2) !important;
    color: white !important;
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 990px) {

    .main-heading {
        font-size: 3rem;
        max-width: 90%;
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    .brand-logo-cyber {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .nav-link {
        padding: 1rem 1rem;
        font-size: 0.85rem;
        margin: 0.1rem;
    }
    
    .user-collar {
        padding: 0.3rem 0.8rem;
    }
    
    .user-avatar-cyber {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .collar-control {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .hero-cyber,
    .dashboard-cyber,
    .tool-container {
        padding: 2rem 1.5rem;
        margin: 1.5rem auto;
    }
    
    
    .grid-cyber {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-cyber {
        padding: 1.5rem;
    }

    .card-cyber.p-4.slider {
        height: 820px;
    }

    .card-icon-cyber {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .btn-cyber,
    .btn-primary, .btn-success {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .tools-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-custom {
        margin: 3px !important;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
    }
    
    .text-area-container {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .brand-logo-cyber {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .lead {
        font-size: 1rem !important;
    }

    .btn-outline-secondary {
        height: 100px;
    }

    .main-heading {
        font-size: 2rem;
    }

}

/* ===== ПЕРЕОПРЕДЕЛЕНИЕ BOOTSTRAP ДЛЯ ТЕМНОЙ ТЕМЫ ===== */
.container {
    max-width: 1400px;
    padding: 0;

}

.container.form {

    position: relative;
    z-index: 2;
}


.container.form > .row {
    height: 500px;
}

.form-label {
    margin-bottom: 1rem;
}

.card {
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--text-cyber);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: white;
    font-weight: 600;
}

.card-text {
    color: #aaa;
}

.bg-light {
    background: rgba(30, 30, 30, 0.8);
}

.border {
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.text-muted {
    color: #aaa !important;
    font-size: 1rem;
}

.text-primary {
    color: var(--neon-blue);
}

/* Отключаем светлые фоны Bootstrap */
.bg-white,
.bg-body {
    background-color: var(--cyber-dark);
    color: var(--text-cyber);
}


/* ===== ФАЙЛОВЫЙ ИНПУТ В КИБЕР-СТИЛЕ ===== */
.form-control[type="file"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--text-cyber);
    border-radius: 8px;
    padding: 0.8rem;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-control[type="file"]:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 0, 0, 0.6);
}

.form-control[type="file"]:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    background: rgba(0, 0, 0, 0.8);
}

.form-control[type="file"]::-webkit-file-upload-button {
    background: rgba(157, 0, 255, 0.2);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-control[type="file"]::-webkit-file-upload-button:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 10px var(--neon-purple);
}

/* Для Firefox */
.form-control[type="file"]::file-selector-button {
    background: rgba(157, 0, 255, 0.2);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 10px var(--neon-purple);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ КНОПКИ ===== */
.btn-success {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: var(--neon-green);
    color: black;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent !important;
    color: var(--text-muted) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-family: 'Orbitron', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    width: 100%;
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-color: white !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* ===== ИКОНКИ ДЛЯ КАРТОЧЕК ===== */
/* Общие стили для иконок карточек */
.card-icon-cyber {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--neon-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Иконки для разных типов инструментов */
.card-icon-cyber.fa-broom { /* Очистка семантики */
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.card-icon-cyber.fa-chart-network, /* Анализ динамики */
.card-icon-cyber.fa-chart-line {
    background: rgba(157, 0, 255, 0.1);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.card-icon-cyber.fa-trophy { /* Top 3 Semantics */
    background: rgba(255, 200, 0, 0.1);
    border-color: #ffc800;
    color: #ffc800;
}

.card-icon-cyber.fa-skull-crossbones { /* Убийца каннибалов */
    background: rgba(255, 0, 200, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.card-icon-cyber.fa-search { /* Поиск лидеров */
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.card-icon-cyber.fa-server { /* Проверка сервера */
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.card-icon-cyber.fa-images { /* Временный сток */
    background: rgba(157, 0, 255, 0.1);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.card-icon-cyber.fa-shopping-cart { /* Коммерческость */
    background: rgba(255, 0, 200, 0.1);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.card-icon-cyber.fa-project-diagram { /* Кластеризация */
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--neon-green);
    color: var(--neon-green);
}

.card-icon-cyber.fa-history { /* Страницы входа */
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.card-icon-cyber.fa-brain { /* Page Guru */
    background: rgba(157, 0, 255, 0.1);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.card-icon-cyber.fa-crown { /* Cannilider */
    background: rgba(255, 200, 0, 0.1);
    border-color: #ffc800;
    color: #ffc800;
}

/* Эффект при наведении на карточку */
.card-cyber:hover .card-icon-cyber {
    background: rgba(0, 243, 255, 0.2);
    transform: rotate(15deg) scale(1.1);
}

/* Специфичные цвета при наведении */
.card-cyber:hover .card-icon-cyber.fa-broom {
    background: rgba(0, 243, 255, 0.2);
}

.card-cyber:hover .card-icon-cyber.fa-chart-network,
.card-cyber:hover .card-icon-cyber.fa-chart-line {
    background: rgba(157, 0, 255, 0.2);
}

.card-cyber:hover .card-icon-cyber.fa-trophy {
    background: rgba(255, 200, 0, 0.2);
}

.card-cyber:hover .card-icon-cyber.fa-skull-crossbones {
    background: rgba(255, 0, 200, 0.2);
}

.card-cyber:hover .card-icon-cyber.fa-search {
    background: rgba(0, 255, 136, 0.2);
}

/* ===== НАВИГАЦИЯ ВНУТРИ ИНСТРУМЕНТОВ ===== */
.navbar.bg-dark {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2) !important;
    padding: 0.8rem 0 !important;
    position: relative !important;
    margin-top: 80px !important;
}

.navbar.bg-dark .navbar-brand {
    color: var(--neon-blue) !important;
    font-family: 'Exo 2', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}

.navbar.bg-dark .navbar-brand:hover {
    color: var(--neon-pink) !important;
    transform: translateX(-5px);
}

.navbar.bg-dark .navbar-text {
    color: var(--neon-blue) !important;
    font-family: 'Orbitron', monospace !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.bg-dark {
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}


.seo-check-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 80%;
    height: 200%;
    background-image: url('/static/images/anton-phone.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

/* ===== ТОЛ КОНТЕЙНЕР ДЛЯ ВСЕХ ИНСТРУМЕНТОВ ===== */
.container.mt-4 {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 100px auto 2rem auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 1400px !important;
}

.container.mt-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
}


.container.mt-4 .lead {
    color: #ccc !important;
    margin-bottom: 2rem !important;
}


.container-2 {
    padding: 3rem;
    margin-top: 2rem;
}



/* ===== ФОРМА ВВОДА В ИНСТРУМЕНТАХ ===== */
.form-text {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem !important;
    font-family: 'Exo 2', sans-serif !important;
}

.form-text strong {
    color: var(--neon-blue) !important;
    font-weight: 600 !important;
}

.container.mt-4.tools {

    margin: 100px auto 2rem 8rem;
}

@media (max-width: 990px) {
    .container-2 {
        padding: 1rem;

    }

    .seo-check-bg {
        width: 200%;
        top: -30%;
        left: -27%;
    }
}

/* ===== АДАПТИВНОСТЬ ДЛЯ ФАЙЛОВОГО ИНПУТА ===== */
@media (max-width: 768px) {
    .form-control[type="file"] {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }
    
    .form-control[type="file"]::-webkit-file-upload-button,
    .form-control[type="file"]::file-selector-button {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
    
    .btn-success {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    .container.mt-4 {
        padding: 2.5rem 0;
        border: none;
    }

    .container.mt-4.tools {
        padding: 20px;
        margin: 100px auto 2rem auto;
    }

}


.table-cyber {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    color: #ccc;
    font-family: 'Exo 2', sans-serif;
}

.table-cyber thead {
    background: rgba(20, 20, 20, 0.9);
    border-bottom: 2px solid var(--neon-blue);
}

.table-cyber th,
.table-cyber td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.table-cyber th {
    color: var(--neon-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.table-cyber tbody tr {
    transition: background 0.2s ease;
}

.table-cyber tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.15);
}

.table-cyber tbody tr:hover {
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--neon-purple);
}

/* Кнопки в таблице */
.table-cyber .btn {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    font-family: 'Exo 2', sans-serif !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.table-cyber .badge {
    font-family: 'Exo 2', monospace;
    padding: 0.4em 0.6em;
    border-radius: 6px;
    font-weight: 600;
}

.table-cyber .badge.bg-warning {
    background: rgba(255, 200, 0, 0.2) !important;
    color: #ffc800 !important;
    border: 1px solid #ffc800 !important;
}

.table-cyber .badge.bg-info {
    background: rgba(0, 243, 255, 0.2) !important;
    color: var(--neon-blue) !important;
    border: 1px solid var(--neon-blue) !important;
}

.table-cyber .badge.bg-danger {
    background: rgba(255, 0, 200, 0.2) !important;
    color: var(--neon-pink) !important;
    border: 1px solid var(--neon-pink) !important;
}

/* Адаптивность */
@media (max-width: 576px) {
    .table-cyber th,
    .table-cyber td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .table-cyber th {
        font-size: 0.85rem;
    }
}

/* Прогресс-бар в таблице истории */
.table-cyber .progress-wrapper {
    min-width: 180px;
}

.table-cyber .progress {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.table-cyber .progress-bar {
    transition: width 0.3s ease;
}

.table-cyber .progress-bar.bg-info {
    background: linear-gradient(90deg, #00f3ff, #00c8ff) !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.table-cyber .progress-bar.bg-warning {
    background: linear-gradient(90deg, #ffcc00, #ff9900) !important;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

/* Анимация полосок */
.progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .table-cyber .status-cell {
        min-width: 160px;
    }
    .table-cyber .progress-wrapper small {
        font-size: 0.7rem;
    }
}

.refresh-highlight {
    padding: 1rem;
    border: 1px solid rgba(255, 0, 200, 0.4);
    border-radius: 10px;
    background: rgba(255, 0, 200, 0.05);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    flex-direction: column;

}

.refresh-highlight:hover {
    background: rgba(255, 0, 200, 0.1);
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 200, 0.2);
}


/* ===== ХЛЕБНЫЕ КРОШКИ — ТЕРМИНАЛЬНЫЙ СТИЛЬ ===== */
.breadcrumb-terminal {
    margin: 0 0 1.5rem 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #aaa;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.6;
}

.breadcrumb-terminal .path-segment a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.breadcrumb-terminal .path-segment a:hover {
    color: white;
    text-shadow: 0 0 8px var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

.breadcrumb-terminal .path-separator {
    color: var(--neon-purple);
    margin: 0 0.6rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.breadcrumb-terminal .path-current {
    color: white;
    font-weight: bold;
    background: rgba(0, 243, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}


/* Стилизация выпадающих списков под кибер-тему */
.form-select {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    color: var(--text-cyber) !important;
    border-radius: 8px !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important; /* стандартный padding select */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300f3ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: all 0.3s ease !important;
}

.form-select:focus {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--neon-blue) !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2) !important;
    color: white !important;
}


.seo-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Затемнение фона */
.badge {
    text-align: left!important;
    white-space: normal!important;
}


/* Слой с текстом */
.hero-text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.12; /* очень прозрачные */
    pointer-events: none;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-word {
    position: absolute;
    color: #ffffff3b;
    font-size: 5rem;
}

/* Позиции слов (подстройте под ваш макет) */
.hero-word:nth-child(1) { /* SEO */
    top: 1%;
    right: -11%;
}

.hero-word:nth-child(2) { /* Яндекс */
    top: 20%;
    right: -17%;
    font-size: 4.5rem;
}

.hero-word:nth-child(3) { /* Google */
    bottom: 54%;
    right: 15%;
    font-size: 4.8rem;
}

.hero-word:nth-child(4) { /* Ссылки */
    bottom: 69%;
    right: 17%;
    font-size: 4rem;
}

.hero-word:nth-child(5) { /* ЗАЯВКИ */
    bottom: 90%;
    right: -15%;
    font-size: 4.2rem;
}

.hero-word:nth-child(6) { /* ЛИДЫ */
    bottom: 44%;
    right: 32%;
    font-size: 4rem;
}

/* Контент поверх */
.seo-hero .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    width: 80%;
    position: absolute;
    right: -20%;
}

.image-services-bg {
    width: 100%;
    position: absolute;
    right: -50%;
    top: 10%;
}

/* Градиентное затухание для .gradient */
.hero-image.gradient {
    -webkit-mask-image: linear-gradient(to bottom, 
        black 50%, 
        black 70%, 
        transparent 100%);
    mask-image: linear-gradient(to bottom, 
        black 50%, 
        black 70%, 
        transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.gradient {
    -webkit-mask-image: linear-gradient(to bottom, 
        black 50%, 
        black 70%, 
        transparent 100%);
    mask-image: linear-gradient(to bottom, 
        black 50%, 
        black 70%, 
        transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}


.hero-image.left {
    left: -34%;
    top: 2%;
    width: 100%;
    z-index: -10;
}



@media (max-width: 1200px) {
    .image-services-bg {
        right: -20%;
        }
    }

@media (max-width: 990px) {
    .col-md-6 {
        width: 100%!important;
    }

    .container.form > .row {
        height: auto;
    }



    .btn-group-lg>.btn, .btn-lg {
        width: 100%;
        font-size: 1rem;
    }

    .hero-text-layer {
        display: none;
    }

    .hero-image {
    width: 100%;
    position: absolute;
    z-index: -1;
    opacity: 0.4;
    }

    .hero-image.left {
    left: -30%;
    }

    .btn-group.img-gen {
        flex-direction: column;
    }

    .breadcrumb-terminal {
        font-size: 0.8rem;
    }
    .status-line {
        margin: 1rem 0;
        font-size: 1rem;
    }

    .breadcrumb-terminal .path-separator {
        margin: 0 0.2rem;
    }
}

.cyber-dots {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cyber-dots li {
    color: #ddd;
    position: relative;
    padding-left: 18px;
}
.cyber-dots li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #00f3ff;
    font-size: 0.7rem;
    top: 10%;
}

/* ===== ТЕКСТОВЫЕ ЭЛЕМЕНТЫ НА ГРАФИКАХ ===== */

/* Основной контейнер */
.graph-container {
    position: relative;
    width: 100%;
    height: 550px;

}

/* Общая подложка */
.graph-group-wrapper {
    position: absolute;
    z-index: 2;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

/* Верхний блок */
.graph-top {
    left: 20%;
    width: 70%;
    max-width: 500px;
}

/* Нижний блок */
.graph-bottom {
    bottom: 0px;
    left: 20px;
    right: 20px;
    width: auto;
}

/* Элементы внутри */
.graph-group {
    position: relative;
    width: 100%;
}

.graph-label,
.graph-value {
    background: none;
    z-index: 1;
}

.graph-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.graph-progress .progress-bar {
    height: 100%;
    border-radius: 4px;
}

.col-md-6._65 {
    width: 65%;
}

.col-md-6._35 {
    width: 35%;
}

.col-md-6._100 {
    width: 100%;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 990px) {

    .graph-group-wrapper {
        position: relative;
        margin-bottom: 20px;
    }
    
    .graph-container {
        height: 480px;
    }

    .graph-top {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        padding: 0.75rem;
    }

    .graph-bottom {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 0.75rem;
    }

    .graph-label {
        font-size: 0.85rem;
    }

    .graph-value {
        font-size: 1rem;
    }

    .graph-progress {
        margin-top: 0.25rem;
    }

    .seo-hero {
        height: auto;
    }

}

/* Просто добавляем курсор и подсветку */
.img-zoomable {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

/* Блок с прогресс-барами */
/* Общий контейнер */
.graph-metric {
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

/* Сетка: 2 колонки */
.progress-grid {
    display: flex;
    gap: 1.5rem;
}

/* Левый столбец — только проценты */
.progress-values {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 60px;
}

.progress-value {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-align: right;
    line-height: 1.6;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
}

/* Правый столбец — текст + бары */
.progress-details {
    flex: 1;
}

.progress-item {
    margin-bottom: 1.25rem;
    width: 100%;
}

.progress-item._mb05 {
    margin-bottom: 0.5rem;
}

.progress-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.progress-bar {
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
}


/* Контейнер — обеспечивает позиционирование */
.neon-image-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Светящийся фон под изображением */
.neon-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;   /* шире изображения */
    height: 120%;  /* выше изображения */
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(0, 243, 255, 0.25) 0%,
        rgba(0, 243, 255, 0) 70%
    );
    filter: blur(20px);
    z-index: -1;
    pointer-events: none;
}

/* Изображение */
.neon-image {
    display: block;
    width: 100%;
    position: relative;
}


/* === Панель фильтров === */
.validator-panel{
  background: rgba(20,20,20,.85);
  border: 1px solid rgba(0,243,255,.25);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 0 25px rgba(0,243,255,.08);
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}
.validator-panel::before{
  content:'';
  position:absolute; left:0; right:0; top:0; height:2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-purple));
}

.validator-summary{
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
  color:#ccc;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
.validator-summary .badge{
  background: rgba(0,0,0,.35) !important;
  border: 1px solid rgba(0,243,255,.25) !important;
  color: #ddd !important;
  border-radius: 10px;
  padding: .35rem .6rem;
}

/* === Список сообщений === */
.msg-card{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(0,243,255,.18);
  border-radius: 12px;
  padding: 12px 12px 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: .2s ease;
}
.msg-card:hover{
  border-color: rgba(0,243,255,.55);
  box-shadow: 0 0 18px rgba(0,243,255,.12);
  transform: translateY(-1px);
}
.msg-card[data-sev="error"] { border-left: 3px solid var(--neon-pink); }
.msg-card[data-sev="warning"] { border-left: 3px solid #ffc800; }
.msg-card[data-sev="info"] { border-left: 3px solid var(--neon-blue); }

.msg-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.msg-title{
  font-family: 'Orbitron', monospace;
  font-size: .9rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
}
.msg-meta{
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", "Courier New", monospace;
  color:#aaa;
  font-size:.85rem;
}
.msg-body{
  margin-top: 6px;
  color:#ddd;
  font-family: 'Exo 2', sans-serif;
  font-size: .95rem;
  line-height: 1.35;
}
.msg-extract{
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(10,10,10,.65);
  border: 1px solid rgba(255,255,255,.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e6e6e6;
  font-size: 12.5px;
}




/* === Исходник: важное исправление ===
   НЕ используем <pre> как контейнер для <div>, иначе браузер/стили могут "раздувать" межстрочные.
*/
.source-wrap {
  flex: 1;
  min-height: 0;
  border: 1px solid rgba(0,243,255,.20);
  border-radius: 12px;
  overflow: auto;
  background: rgba(0,0,0,.55);
  box-shadow: inset 0 0 30px rgba(0,243,255,.06);
}

.source-code{
  margin:0;
  padding: 10px 10px 12px;
  color:#e8e8e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.8px;
  line-height: 1.2 !important;     /* ключевое */
  text-align: left !important;
}

/* строки */
.code-line{
  display:grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 1px 8px;               /* компактно */
  margin: 0 !important;
  align-items: start;
  line-height: 1.2 !important;    /* ключевое */
  text-align: left !important;
}

.line-no{
  color: rgba(0,243,255,.55);
  text-align: right;
  user-select:none;
}

.line-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  margin: 0 !important;
  padding: 0 !important;
}
/* подсветка строк */
.hl-error{ background: rgba(255,0,200,.16); }
.hl-warning{ background: rgba(255,200,0,.14); }
.hl-info{ background: rgba(0,243,255,.10); }
.hl-active{ outline: 2px solid rgba(0,243,255,.35); border-radius: 8px; }

/* каретка колонки */
.col-caret{ position: relative; }
.col-caret::after{
  content:"";
  position:absolute;
  left: var(--caret-left, 0px);
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: rgba(255,255,255,.6);
  box-shadow: 0 0 10px rgba(255,255,255,.25);
}

.validator-loading{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,10,.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.validator-loading__card{
  width: min(560px, 92vw);
  background: rgba(20,20,20,.92);
  border: 1px solid rgba(0,243,255,.35);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 0 60px rgba(0,243,255,.12);
  position: relative;
  overflow: hidden;
}

.validator-loading__card::before{
  content:'';
  position:absolute; left:0; right:0; top:0; height:2px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-purple));
}

.validator-loading__title{
  display:flex;
  align-items:center;
  gap: 10px;
  font-family: 'Orbitron', monospace;
  color: #fff;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.validator-loading__sub{
  margin-top: 10px;
  color: #ccc;
  font-family: 'Exo 2', sans-serif;
}

.validator-loading__bar{
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(0,243,255,.18);
}

.validator-loading__bar-fill{
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green), var(--neon-purple));
  animation: validatorIndeterminate 1.2s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(0,243,255,.25);
}

@keyframes validatorIndeterminate{
  0%   { transform: translateX(-120%); }
  50%  { transform: translateX(40%); }
  100% { transform: translateX(240%); }
}

.validator-loading__hint{
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;
  font-size: .85rem;
}
/* ===== ВАЛИДАТОР: РАВНЫЕ КОЛОНКИ ПО ВЫСОТЕ ===== */
/* .equal-height-cols {
    display: flex;
    align-items: stretch;
}

.equal-height-cols > [class*="col-"] {
    display: flex;
    flex-direction: column;
} */
/* ===== Защита от горизонтального расширения ===== */
.source-code {
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.code-line .line-text {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

/* Фоновый цифровой узор (лёгкий, не отвлекающий) */
.digital-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle, rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle, rgba(157, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Контейнер списка категорий */
.category-list {
    position: relative;
    z-index: 1;
    justify-content: flex-start;
}

/* Элементы списка */
.category-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-items li {
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
}

.category-items li::before {
    content: "▹";
    color: #00f3ff;
    margin-right: 0.8rem;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.cyber-purple .category-items li::before {
    content: "•";
    color: #b100ff;
    font-size: 1.4rem;
}



.cyber-blue .category-items li:hover::before {
    opacity: 1;
    color: #00f3ff;
}

.cyber-purple .category-items li:hover::before {
    opacity: 1;
    color: #b100ff;
}

/* Иконки в заголовках */
.me-2 {
    margin-right: 30px!important;
}
/* Ссылки внутри категорий — кибер-стиль */
.category-items li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.cyber-blue .category-items li a {
    color: #00f3ff;
}

.cyber-purple .category-items li a {
    color: #b100ff;
}





.category-items li.category-item{
  flex-wrap: wrap;              /* панель на новую строку */
  align-items: center;
}

/* Псевдоэлемент — как отдельный flex-элемент, но не растягивается */
.category-items li.category-item::before{
  flex: 0 0 auto;
}

/* Кнопка вместо ссылки — НЕ 100% ширины (иначе треугольник уезжает на строку выше) */
.category-items li .category-trigger{
  background: transparent;
  border: 0;
  padding: 0.9rem 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;

  display: block;
  color: #ccc;
}

/* Иконки + / - в заголовке раскрытия */
.category-panel-title .acc-ico{
  display: inline-block;
  margin: 0 .35rem 0 .55rem;
  font-size: .95em;
  vertical-align: baseline;
  opacity: .9;
}
.category-panel-title .acc-ico:first-child{ margin-left: 0; }


/* Минус чуть “тише”, но в том же цвете */
.category-panel-title .acc-ico.acc-minus{ opacity: .55; }

/* Возвращаем “цвет ссылок” как было */
.cyber-blue .category-items li .category-trigger{ color: #00f3ff; }
.cyber-purple .category-items li .category-trigger{ color: #b100ff; }

/* Панель — всегда вниз (занимает 100% ширины строки) */
.category-panel{
  flex: 0 0 100%;
  width: 100%;
  margin-top: 0.1rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  padding-bottom: 0;
  transition:
    max-height 0.45s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    padding-bottom 0.45s ease;
}

/* Открыто */
.category-item.is-open .category-panel{
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 1rem;
}

/* ===== СТИЛЬ ВНУТРЕННЕГО КОНТЕНТА (кибер, но аккуратно) ===== */

.category-panel-inner{
  border-radius: 10px;
  padding: 0.9rem 0.9rem 0.8rem;
  backdrop-filter: blur(2px);
}

/* Фон/рамка под цвет колонки */
.cyber-blue .category-panel-inner{
  border: 1px solid rgba(0, 243, 255, 0.18);
  background: rgba(0, 243, 255, 0.05);
}

.cyber-purple .category-panel-inner{
  border: 1px solid rgba(177, 0, 255, 0.18);
  background: rgba(177, 0, 255, 0.05);
}

/* Заголовок внутри панели (короткий) */
.category-panel-title{
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0 0 0.55rem 0;
  color: #eaeaea;
  opacity: 0.9;
}

/* Список тезисов */
.category-theses{
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-theses li{
  position: relative;
  padding: 0.25rem 0 0.25rem 1.15rem;
  margin: 0;
  border: 0 !important;
  display: block !important;
  cursor: default !important;
  color: rgba(255,255,255,0.86);
  font-size: 1rem;
}

/* Маркер в стиле сайта */
.category-theses li::before{
  content: "▹";
  position: absolute;
  left: 0;
  top: 0.27rem;
  opacity: 0.85;
}

/* Маркер под цвет колонки */
.cyber-blue .category-theses li::before{ color: #00f3ff; }
.cyber-purple .category-theses li::before{ color: #b100ff; }


/* ===== HTML Валидатор ===== */

/* Родитель двух колонок (тот, где display:flex + height:600px) */
#result > div[style*="display: flex"][style*="height"]{
  align-items: stretch;
}

/* Обе колонки внутри валидатора */
#result > div[style*="display: flex"][style*="height"] > div{
  min-height: 0;                 /* КЛЮЧЕВО */
}

/* Левая колонка: сообщения */
#result #messages{
  min-height: 0;
  overflow-y: auto;
}

/* Правая колонка: исходник */
#result #sourceCode{
  min-height: 0;
  overflow: auto;
}

/* Чтобы .source-code не раздувал родителя */
#result .source-code{
  height: 100%;
  display: block;
}

/* ===== HTML Валидатор: колонки результата ===== */

.validator-cols{
  display: flex;
  gap: 20px;
  margin-top: 20px;
  height: 2000px;
  align-items: stretch;
}

/* общая колонка */
.validator-col{
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* КЛЮЧЕВО: не раздуваться контентом */
  border: 1px solid rgba(0,243,255,0.2);
  border-radius: 12px;
  overflow: hidden;
}

/* темы колонок */
.validator-col--messages{
  background: rgba(0,0,0,0.35);
}

.validator-col--source{
  background: rgba(0,0,0,0.55);
}

/* верхняя часть (заголовок) */
.validator-col__head{
  padding: 12px 12px 0;
  flex-shrink: 0;
}

/* тело (скролл) */
.validator-col__body{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 12px 12px;
}

/* спец для исходника (оставляем твою типографику) */
.validator-col__body--source{
  line-height: 1.2;
}


.flex-grow-1 {
    overflow: hidden;
}

/* Отключаем hover-эффекты для карточек на странице услуги */
.service-page-content .card-cyber:hover {
    border-color: rgba(0, 243, 255, 0.2) !important;
    transform: none !important;
    box-shadow: none !important;
}

.service-page-content .card-cyber::before {
    display: none !important;
}

.service-page-content .card-cyber:hover .card-icon-cyber {
    transform: none !important;
    background: rgba(0, 243, 255, 0.1) !important;
}

.service-page-content .row {
    margin: 0;
}

.service-page-content .container.mt-4 {
    padding: 0;
    overflow: visible;
}

.service-page-content .section {
    padding: 2.25rem;
    position: relative;
}

.service-page-content .section.main {
    margin-bottom: 4rem;
}

.service-page-content .breadcrumb-terminal {
    margin: 2.25rem;
}

.row.g-4.services {
    margin-top: 4rem;
}

@media (min-width: 1200px) and (max-width: 1700px) {
    body {
        zoom: 0.75;
    }
}


/* Прогресс-бары поверх изображения */
.progress-overlay {
    position: absolute;
    bottom: 0%;
    right: 0;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    pointer-events: none;
}

/* Круговой индикатор */
.circular-progress {
    width: 180px;
    position: relative;
    pointer-events: auto;
}

.circular-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.7);
    z-index: -1;
}

.circular-progress-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.circular-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.circular-label {
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}


/* Линейные бары */
.linear-progress-group {
    width: 100%;
    pointer-events: auto;
}

.linear-progress-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-name {
    color: #ccc;
    font-size: 1.1rem;
    min-width: 90px;
    flex-shrink: 0;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
}

.progress-value-left,
.progress-value-right {
    color: #aaa;
    font-size: 0.8rem;
    white-space: nowrap;
}

.progress-bar {
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: inherit;
    width: 100%;
    filter: blur(2px);
}

.flex-images {
    display: flex;

}

.flex-images img {
   width: 50%;
   position: relative;
}

.i-1 {
    left: 5%;
}


.floating-header {
    position: absolute;
    top: 8%;
    left: 5%;
    z-index: 1;
    padding: 2rem 1rem;
}

@media (max-width: 1100px) {
    .flex-images {
        flex-direction: column;
        gap: 20px;
    }

    .i-1 {
        left: 0;
    }

    .flex-images img {
        width: 100%;
        position: relative;
    }

    .progress-overlay {
        width: 100%;
    }
    .col-md-6._35 {
        width: 100%;
    }

    .col-md-6._65{
        width: 100%;
    }

    ._column100 {
        width: 100%;
        flex-direction: column;
    }

    .floating-header {
        top: 0;
        left: 0;
        padding: 2rem 1rem;
    }

    .service-page-content .section {
        padding: 0;
    }

        .service-page-content .section.main{
        padding: 10px;
        margin-top: 2rem;
    }

    .service-page-content .breadcrumb-terminal {
        margin: 1%;
        font-size: 0.7rem;
    }
    .row.g-4.services {
        margin-top: 0;
    }

}

@media (max-width: 576px) {
    .card-cyber.p-4 {
        padding: 0.7rem!important;
    }
    
    .graph-container {
        height: 450px;
    }

    .circular-progress {
        margin-bottom: 0.3rem;
    }

    .progress-text {
        font-size: 0.7rem;
    }

    .progress-overlay {
        padding: 1rem 1rem 1rem;
    }

    .floating-header {
       padding: 0.5rem 1rem 2rem;
    }

    .bg-dark {
        padding: 0;
    }

    .graph-label {
        font-size: 0.7rem;
    }

    .section .position-relative {
        padding: 0.5rem;
    }

    .hero-text-layer {
        display: none;
    }

    .hero-image.main {
        opacity: 0.4;
        width: 130%;
        right: -31%;
        top: -3%;
    }
}



/* Сетка терминалов */
.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

/* Терминал одного этапа */
.stage-terminal {
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.stage-terminal:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    transform: translateY(-2px);
}

/* Заголовок терминала */
.terminal-header {
    padding: 12px 16px;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.neon-blue { background: rgba(0, 60, 100, 0.4); color: #00f3ff; }
.neon-green { background: rgba(0, 80, 60, 0.4); color: #00ff88; }
.neon-purple { background: rgba(60, 0, 100, 0.4); color: #b100ff; }
.neon-orange { background: rgba(120, 40, 0, 0.4); color: #ff8800; }
.neon-cyan  { background: rgba(0, 80, 100, 0.4); color: #00f3ff; }
.neon-pink  { background: rgba(100, 0, 80, 0.4); color: #ff00cc; }
.neon-yellow{ background: rgba(100, 100, 0, 0.4); color: #ffcc00; }

/* Тело терминала */
.terminal-body {
    padding: 16px;
    font-family: 'Exo 2', monospace;
    font-size: 0.92rem;
    line-height: 1.6;
}

.terminal-line {
    color: #555;
    margin-bottom: 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.stage-terminal:hover .terminal-line {
    color: #ccc;
    opacity: 1;
    text-shadow: 0 0 6px rgba(100, 200, 255, 0.3);
}

/* Эффект "загрузки" при наведении */
.stage-terminal:hover .terminal-line:nth-child(1) { transition-delay: 0.05s; }
.stage-terminal:hover .terminal-line:nth-child(2) { transition-delay: 0.1s; }
.stage-terminal:hover .terminal-line:nth-child(3) { transition-delay: 0.15s; }
.stage-terminal:hover .terminal-line:nth-child(4) { transition-delay: 0.2s; }
.stage-terminal:hover .terminal-line:nth-child(5) { transition-delay: 0.25s; }
.stage-terminal:hover .terminal-line:nth-child(6) { transition-delay: 0.3s; }
.stage-terminal:hover .terminal-line:nth-child(7) { transition-delay: 0.35s; }
.stage-terminal:hover .terminal-line:nth-child(8) { transition-delay: 0.4s; }
.stage-terminal:hover .terminal-line:nth-child(9) { transition-delay: 0.45s; }
.stage-terminal:hover .terminal-line:nth-child(10) { transition-delay: 0.5s; }
.stage-terminal:hover .terminal-line:nth-child(11) { transition-delay: 0.55s; }
.stage-terminal:hover .terminal-line:nth-child(12) { transition-delay: 0.6s; }


/* === АДАПТИВНЫЙ СЛАЙДЕР ЭТАПОВ === */
.stages-container {
    overflow: hidden;
}


/* Сетка на десктопе */
@media (min-width: 768px) {
    .stages-slider {
        overflow: visible;
    }
    .swiper-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        transform: none;
        transition: none;
        padding: 10px 0;
    }
    .swiper-slide {
        width: auto;
        margin: 0;
    }
    .swiper-pagination {
        display: none;
    }

}

/* Слайдер на мобильных */
@media (max-width: 767px) {


    .stages-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .terminal-header {
        font-size: 0.9rem;
    }

    .terminal-body {
        font-size: 0.88rem;
    }

    .stages-slider {
        padding-bottom: 40px;
    }

    .swiper-pagination {
        position: absolute;
        bottom: 10px;
        left: 0;
        width: 100%;
        text-align: center;
    }
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: rgb(79 90 91);
        opacity: 1;
        margin: 0 4px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    .swiper-pagination-bullet-active {
        background: #00f3ff;
        transform: scale(1.2);
    }
    .swiper-autoheight, .swiper-autoheight .swiper-slide {
        height: 100% !important;
        padding: 0 6px;
    }
}


/* Финальный терминал — занимает 2 колонки */
@media (min-width: 992px) {
    .boot-terminal-wrapper,
    .swiper-slide:has(.boot-terminal-wrapper) {
        grid-column: span 2;
    }
}

/* Стили терминала внутри сетки */
.system-boot-terminal {
    background: transparent;
    border: none;
    padding: 1rem;
    margin: 0;
    color: #555;
    font-family: 'Exo 2', monospace;
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
}




/* Строки изначально скрыты */
.boot-line {
    margin-bottom: 0.55rem;
    opacity: 0;
    transform: translateY(5px);
    transition: none;
    animation: none;
}


/* Модули и бренды */
.module,
.neon-blue {
    color: #00f3ff;
    text-shadow: 0 0 6px rgba(0, 243, 255, 0.4);
}
.neon-green {
    color: #00ff88;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}
.neon-purple {
    color: #b100ff;
    text-shadow: 0 0 6px rgba(177, 0, 255, 0.4);
}

.ready { 
    color: #00ff88; 
    font-weight: bold; text-shadow: 0 0 8px rgba(0, 255, 136, 0.5); }

/* Кнопка — всегда видна */
.boot-action {
    margin-top: 4rem !important;
}

.cyber-btn {
    background: #00f3ff;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    text-decoration: none;
}

.cyber-btn:hover {
    background: #00ccee;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}


/* Мигающий курсор терминала */
.boot-cursor {
    display: inline-block;
    color: #00f3ff;
    margin-left: 0.3rem;
    opacity: 1;
    animation: blink 1s infinite step-start;
    vertical-align: text-bottom;
    font-family: 'Exo 2', monospace;
    font-weight: bold;
    font-size: 1.1em;
}

@keyframes blink {
    50% { opacity: 0; }
}








/* ===== БЛОК 1: ПРОЦЕСС ВЫПОЛНЕНИЯ ===== */
.process-block {
    position: relative;
    margin-bottom: 3rem;
}

.process-block h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.process-block .text-muted {
    color: #aaa !important;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Таймлайн */
.execution-timeline {
    display: flex;
    gap: 2.5rem;
    align-items: stretch;
    position: relative;
    padding-top: 40px;
}

/* Горизонтальная линия ПОД точками */
.execution-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(to right, 
        rgba(0, 243, 255, 0.2) 0%,
        rgba(0, 255, 136, 0.2) 100%);
    z-index: 1;
}


/* Каждый пункт — растягивается на всю высоту */
.timeline-item {
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%; /* равная ширина */
    min-width: 240px; /* минимальная ширина на десктопе */
    padding-top: 40px; /* место для точки */
}

/* Точка — над блоком, по центру */
.timeline-dot {
    position: absolute;
    top: -12%;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    font-size: 3rem;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    animation: pulse-glow 2s infinite;
}

/* Контент — занимает всё доступное пространство */
.timeline-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}


/* Остальные стили — без изменений */
.timeline-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.terminal-badge {
    font-family: 'Consolas', monospace;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    background: transparent !important;
}

.timeline-desc {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    flex-grow: 1; /* занимает свободное место */
}

.timeline-status {
    font-size: 0.9rem;
    color: #888;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Consolas', monospace;
    justify-content: center;
}

.status-indicator {
    display: inline-block;
    margin-right: 6px;
    font-weight: bold;
}

.status-indicator.completed {
    color: var(--neon-green);
}

.status-indicator.active {
    color: #ffcc00;
    animation: blink 1s infinite;
}

.status-indicator.online {
    color: var(--neon-purple);
    animation: pulse 1.5s infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor; }
    50% { opacity: 0.7; box-shadow: 0 0 20px currentColor; }
}

.status-time {
    color: #aaa;
    font-family: 'Consolas', monospace;
}

.neon-green + .timeline-content .status-time {
    color: var(--neon-green);
}

.neon-blue + .timeline-content .status-time {
    color: var(--neon-blue);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #ffcc00;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 1s infinite;
}

@media (max-width: 991px) {
    .execution-timeline {
        flex-direction: column;
        gap: 2rem;
        padding-left: 50px;
    }

    .execution-timeline::before {
        content: '';
        display: block;
        position: absolute;
        left: 8px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, 
            rgba(0, 243, 255, 0.2) 0%,
            rgba(0, 255, 136, 0.2) 100%);
    }

    .timeline-item {
        padding-top: 0;
        text-align: left;
        align-items: flex-start;
    }

    .timeline-dot {
        position: absolute;
        top: 4px;
        left: -18px;
        transform: none;
    }

    .timeline-content {
        padding-left: 1rem;
    }
}


/* Информация о стоимости */
.price-info {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    margin-top: 2rem;
}

.terminal-text {
    font-family: 'Consolas', monospace;
    color: #aaa !important;
    font-size: 1rem;
}

.get-tariffs-btn {
    background: rgba(157, 0, 255, 0.2);
    color: var(--neon-purple);
    border: 2px solid var(--neon-purple);
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.get-tariffs-btn:hover {
    background: var(--neon-purple);
    color: white;
    box-shadow: 0 0 20px var(--neon-purple);
    transform: translateY(-2px);
}

/* 🔹 Карточка "Тайный владыка" — премиум-свечение */
.tariff-simple.secret-lord {
    position: relative;
    border: 2px solid #00f3ff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4),
                0 0 40px rgba(157, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.tariff-simple.secret-lord:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.7),
                0 0 60px rgba(157, 0, 255, 0.4);
}

/* Свечение-анимация */
.secret-glow {
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #00f3ff, #9d00ff, #ff00c8, #00f3ff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.6;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Кнопка для "Тайного владыки" */
.btn-tariff-simple.btn-cyan {
    background: linear-gradient(135deg, #00f3ff, #0099cc);
    color: #000;
    border: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-tariff-simple.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.5);
    color: #000;
}

/* Иконки в карточке */
.tariff-simple.secret-lord .text-cyan {
    color: #00f3ff !important;
}


/* ===== БЛОК 2: FAQ ===== */
.faq-block {
    margin-bottom: 3rem;
}

.faq-block .knowledge-base {
    margin: 2rem 0;
}

.kb-item {
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(20, 20, 30, 0.5);
    cursor: pointer;
}

.kb-item:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
    transform: translateX(3px);
}

.kb-item.expanded {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    background: rgba(20, 20, 30, 0.8);
}

.kb-header {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background: rgba(30, 30, 30, 0.7);
    transition: background 0.3s;
    min-height: 100px;
}

.kb-item.expanded .kb-header {
    background: rgba(0, 243, 255, 0.05);
}

.kb-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.1), rgba(157, 0, 255, 0.1));
    border-radius: 8px;
    color: var(--neon-blue);
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.kb-title {
    color: white;
    flex-grow: 1;
    font-weight: 500;
    font-size: 1.1rem;
    font-family: 'Exo 2', sans-serif;
}

.kb-toggle {
    color: var(--neon-blue);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
}

.kb-item.expanded .kb-toggle {
    transform: rotate(180deg);
    color: var(--neon-pink);
}

.kb-body {
    padding: 0 1.2rem;
    color: #aaa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}

.kb-item.expanded .kb-body {
    max-height: 800px;
    padding: 0 1.2rem 1.2rem 1.2rem;
}

.kb-answer {
    padding-top: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.answer-prefix {
    color: var(--neon-blue);
    font-weight: bold;
    margin-right: 8px;
}

.cyber-tag {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    letter-spacing: 0.5px;
    background: transparent !important;
    font-weight: 600;
}

.team-tag {
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    background: rgba(1, 135, 1, 0.21) !important;
}

.audit-tag {
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    background: rgba(0, 243, 255, 0.1) !important;
}

.growth-tag {
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 136, 0.1) !important;
}

.full-tag {
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 136, 0.1) !important;
}

.seo-tag {
    color: var(--neon-purple);
    border: 1px solid var(--neon-purple);
    background: rgba(157, 0, 255, 0.1) !important;
}

.knowledge-base .col-lg-6 {
    margin-top: 0;
} 

.contact-manager-btn {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.contact-manager-btn:hover {
    background: var(--neon-blue);
    color: black;
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

/* ===== БЛОК 3: БИЗНЕС-ПРОФИЛЬ ===== */
.business-block {
    margin-bottom: 3rem;
}

.business-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.scenario-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(15, 15, 25, 0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid;
}

.store-card {
    border-color: rgba(0, 243, 255, 0.4);
}

.service-card {
    border-color: rgba(0, 255, 136, 0.4);
}

.b2b-card {
    border-color: rgba(177, 0, 255, 0.4);
}

.scenario-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.store-card:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.3);
}

.service-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.3);
}

.b2b-card:hover {
    box-shadow: 0 0 25px rgba(177, 0, 255, 0.3);
}

.scenario-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.scenario-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.5px;
}

.scenario-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1rem;
    font-family: 'Exo 2', sans-serif;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
    font-family: 'Orbitron', monospace;
}

.graph-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.graph-bar {
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    flex-grow: 1;
    position: relative;
}

.graph-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    border-radius: 6px;
    transition: width 1.5s ease-out;
    animation: bar-pulse 1.5s infinite;
}

.store-bar::before {
    width: 75%;
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
}

.service-bar::before {
    width: 90%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.b2b-bar::before {
    width: 60%;
    background: #b100ff;
    box-shadow: 0 0 10px #b100ff;
}

@keyframes bar-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.graph-percent {
    color: white;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    min-width: 50px;
}

.graph-caption {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.scenario-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    text-align: left;
    margin-top: 0;
}

.scenario-card:hover .scenario-details {
    max-height: 200px;
    margin-top: 1.5rem;
}

.detail-item {
    color: #ddd;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}

.detail-item i {
    color: var(--neon-green);
}

/* Гео-селектор */
.geo-selector {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
}

.geo-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.geo-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.geo-tag {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    font-family: 'Orbitron', monospace;
}

.moscow-tag {
    color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
}

.spb-tag {
    color: var(--neon-purple);
    background: rgba(157, 0, 255, 0.1);
}

.regions-tag {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

.world-tag {
    color: var(--neon-pink);
    background: rgba(255, 0, 200, 0.1);
}

.geo-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.geo-tag.active {
    border-color: currentColor;
    box-shadow: 0 0 15px currentColor;
    color: white !important;
}

.moscow-tag.active {
    background: var(--neon-blue) !important;
}

.spb-tag.active {
    background: var(--neon-purple) !important;
}

.regions-tag.active {
    background: var(--neon-green) !important;
}

.world-tag.active {
    background: var(--neon-pink) !important;
}

.geo-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-box {
    padding: 0.8rem 1.5rem;
}

.stat-box .stat-value {
    font-size: 2rem;
    color: var(--neon-blue);
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
}

.stat-box .stat-label {
    color: #aaa;
    font-size: 0.95rem;
}

.find-solution-btn {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.find-solution-btn:hover {
    background: var(--neon-green);
    color: black;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .business-scenarios {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .timeline-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .process-block h3,
    .faq-block h3,
    .business-block h3 {
        font-size: 1.5rem;
    }
    
    .business-scenarios {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .scenario-card {
        padding: 1.2rem;
    }
    
    .price-info .d-flex {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
    }
    
    .geo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .geo-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .kb-header {
        padding: 1rem;
    }
    
    .kb-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .scenario-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .graph-bar-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .graph-percent {
        order: -1;
    }
}




/* ===== КИБЕРПАНК ПЕРЕЛИНКОВКА ===== */
.cyber-navigation {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9998;
    transition: all 0.3s ease;
    max-height: 90vh;
    min-height: 400px;
}

/* Основная машина - базовые стили */
.nav-machine {
    background: rgba(10, 10, 15, 0.95);
    border: 2px solid var(--neon-blue);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 1.5rem 1.2rem;
    width: 320px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2),
                inset 0 0 20px rgba(0, 243, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 85vh; /* Ограничение высоты */
    display: flex;
    flex-direction: column;
}

.nav-machine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--neon-pink), 
        var(--neon-blue), 
        var(--neon-purple));
}

/* Заголовок машины */
.machine-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    flex-shrink: 0; /* Не сжимается при скролле */
}

.machine-label {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-blue);
    transition: all 0.3s ease;
}

/* Контейнер для кнопок с прокруткой */
.nav-buttons-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1.5rem;
    padding-right: 8px;
}

/* Кастомный скроллбар */
.nav-buttons-container::-webkit-scrollbar {
    width: 6px;
}

.nav-buttons-container::-webkit-scrollbar-track {
    background: rgba(0, 243, 255, 0.1);
    border-radius: 3px;
}

.nav-buttons-container::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
    box-shadow: 0 0 5px var(--neon-blue);
}

.nav-buttons-container::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
}

/* Для Firefox */
.nav-buttons-container {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-blue) rgba(0, 243, 255, 0.1);
}

/* Кнопки навигации */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

/* Остальные стили для кнопок остаются без изменений */
.nav-btn {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 98%;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 243, 255, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn.active {
    border-color: var(--neon-purple);
    background: rgba(157, 0, 255, 0.15);
    box-shadow: 0 0 15px var(--neon-purple);
}

.nav-btn.active .btn-label {
    color: white;
}

.nav-btn.active .btn-code {
    color: var(--neon-purple);
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    color: var(--neon-blue);
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-btn.active .btn-icon {
    background: rgba(157, 0, 255, 0.2);
    border-color: var(--neon-purple);
    color: var(--neon-purple);
}

.btn-label {
    color: #ccc;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: left;
    transition: all 0.3s ease;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-code {
    color: #888;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Большие экраны (1440px и больше) - пропорциональное уменьшение */
@media (min-width: 1400px) and (max-width: 1799px) {
    .nav-machine {
        width: 280px;
        padding: 1.2rem 0.8rem;
    }
    
    .machine-label {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        margin-right: 10px;
    }
    
    .btn-label {
        font-size: 0.85rem;
    }
    
    .btn-code {
        font-size: 0.7rem;
    }
    
    .nav-btn {
        padding: 0.7rem 0.8rem;
    }
}

/* Очень большие экраны (1800px и больше) - нормальный размер */
@media (min-width: 1800px) {
    .nav-machine {
        width: 340px;
    }
}

/* Средние экраны (1200px-1399px) - ещё меньше */
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-machine {
        width: 260px;
        padding: 1rem 0.7rem;
    }
    
    .machine-label {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .btn-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        margin-right: 8px;
    }
    
    .btn-label {
        font-size: 0.8rem;
    }
    
    .btn-code {
        font-size: 0.65rem;
    }
    
    .nav-btn {
        padding: 0.6rem 0.7rem;
    }
    
    .nav-buttons {
        gap: 0.6rem;
    }
}

/* Планшетный размер (768px-1199px) - скрываем блок */
@media (min-width: 768px) and (max-width: 1199px) {
    .cyber-navigation {
        display: none;
    }
}

/* Мобильные устройства (до 767px) - тоже скрываем */
@media (max-width: 767px) {
    .cyber-navigation {
        display: none;
    }
}

@keyframes scrollIndicator {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}



/* ===== ТЕХПОДДЕРЖКА ЧАТ ===== */
.support-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.support-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00f3ff;
    border: none;
    color: #000;
    font-size: 1.4rem;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.9);
}

.support-form {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid var(--neon-blue);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.support-header h5 {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
}

.support-close {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-close:hover {
    background: rgba(0, 243, 255, 0.2);
}

#supportStatus.success {
    color: #00ff88;
}
#supportStatus.error {
    color: #ff0055;
}

/* Адаптивность */
@media (max-width: 768px) {
    .support-form {
        width: calc(100vw - 40px);
        right: 20px;
    }
}




/* ===== КИБЕР-КНОПКА ВИДЕО ИНСТРУКЦИИ ===== */
.cyber-video-guide {
    position: fixed;
    top: 110px; /* Под основной навигацией */
    left: 20px;
    z-index: 9997;
}

.cyber-video-btn {
    width: 160px;
    height: 48px;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cyber-video-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 243, 255, 0.1) 0%, 
        rgba(157, 0, 255, 0.1) 100%);
    border-radius: 5px;
    z-index: -1;
}

.cyber-video-btn:hover {
    border-color: var(--neon-blue);
    box-shadow: 
        0 0 15px rgba(0, 243, 255, 0.3),
        0 0 30px rgba(0, 243, 255, 0.1);
    transform: translateY(-2px);
}

.cyber-video-btn-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 1rem;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cyber-video-btn:hover .cyber-video-btn-inner {
    color: white;
    text-shadow: 0 0 8px var(--neon-blue);
}

.cyber-video-btn i {
    font-size: 1rem;
    margin-right: 8px;
}

/* Уголки кнопки */
.btn-corner-tl,
.btn-corner-tr,
.btn-corner-bl,
.btn-corner-br {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 3px solid var(--neon-blue);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.btn-corner-tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.btn-corner-tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.btn-corner-bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.btn-corner-br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.cyber-video-btn:hover .btn-corner-tl,
.cyber-video-btn:hover .btn-corner-tr,
.cyber-video-btn:hover .btn-corner-bl,
.cyber-video-btn:hover .btn-corner-br {
    opacity: 1;
    box-shadow: 0 0 5px var(--neon-blue);
}

/* ===== ПАНЕЛЬ С ВИДЕО ===== */
.cyber-video-panel {
    position: absolute;
    top: 60px;
    left: 0;
    width: 40vw;
    background: rgba(10, 10, 15, 0.98);
    border: 1px solid var(--neon-blue);
    border-radius: 8px;
    padding: 0;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 40px rgba(0, 243, 255, 0.2),
        0 15px 35px rgba(0, 0, 0, 0.5);
    animation: cyberPanelAppear 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9998;
}

.cyber-video-panel.show {
    display: block;
}

@keyframes cyberPanelAppear {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cyber-video-header {
    background: rgba(20, 20, 30, 0.9);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.cyber-video-title {
    display: flex;
    align-items: center;
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.cyber-video-close {
    background: transparent;
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: var(--neon-blue);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.cyber-video-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 200, 0.3);
}

/* Тело панели */
.cyber-video-body {
    padding: 15px;
}

.cyber-video-preview {
    cursor: pointer;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.cyber-video-preview:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.video-preview-inner {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, 
        rgba(0, 243, 255, 0.1) 0%, 
        rgba(157, 0, 255, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.cyber-video-preview:hover .video-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(0, 243, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    transition: all 0.3s ease;
}

.cyber-video-preview:hover .play-button {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: 'Orbitron', monospace;
}

.video-info-cyber {
    padding: 10px;
    background: rgba(20, 20, 30, 0.7);
    border-top: 1px solid rgba(0, 243, 255, 0.1);
}

.video-info-line {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 0.85rem;
    font-family: 'Exo 2', sans-serif;
}

.video-info-line i {
    color: var(--neon-blue);
    font-size: 0.9rem;
}


/* Контейнер видео — изначально скрыт и без высоты */
.cyber-video-container {
    display: none;
    width: 100%;
    transition: max-height 0.4s ease;
    overflow: hidden;
}

/* Обёртка под видео — 16:9 */
.video-frame-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.vk-video-container,
.vk-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* Строка состояния */
.video-status {
    margin-top: 10px;
    padding: 8px;
    background: rgba(20, 20, 30, 0.6);
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-status i {
    color: var(--neon-green);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .cyber-video-guide {
        top: 90px;
        left: 15px;
    }
    
    .cyber-video-btn {
        width: 140px;
        height: 44px;
    }
    
}

@media (max-width: 992px) {
    .cyber-video-guide {
        top: 80px;
        left: 10px;
    }
    
    .cyber-video-btn {
        width: 130px;
        height: 42px;
    }
    
}

@media (max-width: 768px) {
    .cyber-video-guide {
        display: none;
    }
}



/* ===== АККОРДЕОН С ТЕКСТОВОЙ ИНСТРУКЦИЕЙ ===== */
.cyber-instruction-accordion {
    width: calc(100% + 40px); /* шире видео на 20px с каждой стороны */
    margin: 1.5rem -20px 0 -20px; /* компенсирует увеличение ширины */
    padding: 0 20px;
}

.accordion-item {
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(10, 15, 25, 0.6);
}

.accordion-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 30, 40, 0.7);
    color: #00f3ff;
    font-family: 'Orbitron', monospace;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.accordion-header:hover {
    background: rgba(0, 60, 80, 0.8);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #00ccff;
}

.accordion-item.expanded .accordion-icon {
    transform: rotate(180deg);
}

/* ===== ОГРАНИЧЕНИЕ ВЫСОТЫ + СКРОЛЛ В АККОРДЕОНЕ ===== */
.accordion-content {
    scroll-behavior: smooth;
    padding: 1.2rem;
    color: #ccc;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    max-height: 40vh; 
    overflow-y: auto;
    overflow-x: hidden;
}

/* Скроллбар (стилизованный) */
.accordion-content::-webkit-scrollbar {
    width: 6px;
}
.accordion-content::-webkit-scrollbar-track {
    background: rgba(0, 243, 255, 0.1);
    border-radius: 3px;
}
.accordion-content::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}
.accordion-content::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* ===== СКРИНШОТЫ ===== */
.screenshot-thumb {
    display: inline-block;
    margin-top: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    max-width: 100%;
}

.screenshot-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #00f3ff;
    font-size: 1.2rem;
}

.screenshot-thumb:hover .screenshot-overlay {
    opacity: 1;
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ПОЛНОГО СКРИНШОТА ===== */
#screenshotModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

#screenshotModal img {
    max-width: 90vw;
    max-height: 90vh;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

#screenshotModal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    gap: 12px;
}

.step-number {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 4px;
    color: #00f3ff;
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-text {
    flex-grow: 1;
}

.step-text code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    color: #00ff88;
}





#resultHtmlOutput mark.highlight {
    background: transparent;
    color: #ff0;
    text-shadow: 0 0 6px #ff0;
    padding: 0 2px;
    font-weight: bold;
    border-radius: 2px;
  }



  /* ========================================
     СТИЛИ РЕДАКТОРА КОДА
     ======================================== */
  
  /* .code-textarea {
    width: 100%;
    min-height: 400px;
    padding: 16px !important;
    font-family: 'Fira Code', 'Courier New', monospace !important;
    line-height: 1.5 !important;
    background: #0a0a0a !important;
    color: #dcdcaa !important;
    border: none !important;
    outline: none !important;
    resize: vertical !important;
    white-space: pre !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
    caret-color: #fff !important;
  }
   */
  .code-textarea:focus {
    box-shadow: 0 0 0 2px #444 inset !important;
  }
  
  .code-textarea::placeholder {
    color: #666 !important;
    font-style: italic !important;
  }

  /* ========================================
     СТИЛИ РЕСАЙЗАБЕЛЬНОГО КОНТЕЙНЕРА
     ======================================== */
  
  .resizable-container {
    position: relative;
    min-height: 350px;
    transition: min-height 0.2s ease;
  }
  
  .resizable-content {
    position: relative;
    overflow: hidden;
    min-height: 300px;
  }
  
  .resizable-content iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
  }
  
  /* Ручка для ресайза */
  .resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    cursor: ns-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    user-select: none;
  }
  
  .resize-handle::after {
    content: "☰";
    color: #666;
    font-size: 18px;
    transform: rotate(90deg);
  }
  
  .resize-handle:hover::after {
    color: #fff;
  }
  
  /* Кнопка сброса размера */
  #resetSizeBtn {
    padding: 4px 8px !important;
    font-size: 0.85rem !important;
  }
  
  #resetSizeBtn:hover {
    background-color: #444 !important;
    border-color: #555 !important;
  }


/* ПРОСТЫЕ ТАРИФЫ */
.simple-tariffs {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(20, 20, 30, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.cyber-title {
    font-family: 'Orbitron', monospace;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Карточка тарифа */
.tariff-simple {
    background: rgba(30, 30, 40, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.tariff-simple:hover {
    border-color: rgba(0, 243, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 243, 255, 0.1);
}

.tariff-simple.popular {
    border: 2px solid var(--neon-blue);
    background: rgba(30, 30, 40, 0.9);
}

.popular-badge-simple {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--neon-blue);
    color: black;
    padding: 5px 15px;
    border-radius: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Заголовок тарифа */
.tariff-header-simple {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.tariff-name-simple {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tariff-price-simple {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
}

.tariff-price-simple small {
    font-size: 0.9rem;
    color: #aaa;
    margin-left: 5px;
}

/* Особенности */
.tariff-features-simple {
    margin-bottom: 2rem;
}

.feature-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ddd;
    font-size: 0.95rem;
}

/* Кнопки */
.btn-tariff-simple {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-gray {
    background: rgba(108, 117, 125, 0.2);
    color: #adb5bd;
    border: 1px solid #6c757d;
}

.btn-gray:hover {
    background: #6c757d;
    color: white;
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.3);
}

.btn-green {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.btn-green:hover {
    background: #28a745;
    color: white;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.3);
}

.btn-gold {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.btn-gold:hover {
    background: #ffc107;
    color: black;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .simple-tariffs {
        padding: 1.5rem;
    }
    
    .tariff-name-simple {
        font-size: 1.1rem;
    }
    
    .tariff-price-simple {
        font-size: 1.5rem;
    }
}








/* ===== БЛОК "ПОЧЕМУ МЫ" - ОРИГИНАЛЬНЫЙ СТИЛЬ ===== */
.why-us-section {
    padding: 4rem 30px 4rem 0;
    background: #131313;
    position: relative;
    overflow: hidden;
}

.why-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(157, 0, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Визуал с цифровым мозгом */
.cyber-visual {
    height: 400px;
    position: relative;
    overflow: visible;
    /* background: rgba(0, 0, 0, 0.3); */
}



/* ===== ОБЛАКО СЛОВ ===== */
.word-cloud-container {
    position: relative;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.cloud-word {
    position: absolute;
    font-family: 'Exo 2', sans-serif;
    color: var(--neon-blue);
    white-space: nowrap;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 6px rgba(0, 243, 255, 0.3);
    pointer-events: none;
}

/* Размеры и веса */
.cloud-word.size-xl { font-size: 42px; font-weight: 900; opacity: 1; }
.cloud-word.size-l { font-size: 36px; font-weight: 900; opacity: 0.95; }
.cloud-word.size-m { font-size: 24px; font-weight: 800; opacity: 0.85; }
.cloud-word.size-s { font-size: 18px; font-weight: 600; opacity: 0.7; }
.cloud-word.size-xs { font-size: 14px; font-weight: 600; opacity: 0.6; }
/* Ваши слова - плавная анимация */
.data-particle {
    position: absolute;
    color: rgba(0, 243, 255, 0.7);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    animation: particleFloat 6s infinite;
    z-index: 1;
    text-shadow: 0 0 3px rgba(0, 243, 255, 0.2);
    white-space: nowrap;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.1);
    transition: all 0.3s ease;
}

/* Разные задержки для плавного движения */
.data-particle:nth-child(9) { animation-delay: 0s; }
.data-particle:nth-child(10) { animation-delay: 0.5s; }
.data-particle:nth-child(11) { animation-delay: 1s; }
.data-particle:nth-child(12) { animation-delay: 1.5s; }
.data-particle:nth-child(13) { animation-delay: 2s; }
.data-particle:nth-child(14) { animation-delay: 2.5s; }
.data-particle:nth-child(15) { animation-delay: 3s; }
.data-particle:nth-child(16) { animation-delay: 3.5s; }

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0); 
        opacity: 0.7;
    }
    25% { 
        transform: translate(3px, -3px); 
        opacity: 0.9;
    }
    50% { 
        transform: translate(-2px, 2px); 
        opacity: 1;
    }
    75% { 
        transform: translate(2px, 3px); 
        opacity: 0.9;
    }
}

.data-particle:hover {
    color: white;
    background: rgba(0, 243, 255, 0.15);
    border-color: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.2);
}

/* Статистика вокруг */
.stats-overlay {
    position: absolute;
    bottom: -15%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.2);
    transform: translateY(-3px);
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-blue);
    margin-bottom: 5px;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
}

/* Контент справа */
.why-us-content {
    position: relative;
    z-index: 1;
}

.cyber-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}


.cyber-lead {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: 'Exo 2', sans-serif;
}

/* Преимущества */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.advantage-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #212529;
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    border-color: var(--neon-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.1);
    background: rgba(30, 30, 40, 0.7);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.1);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.advantage-item:hover .advantage-icon {
    background: rgba(0, 243, 255, 0.2);
    transform: rotate(5deg);
}

.advantage-content h4 {
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.advantage-content p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    font-family: 'Exo 2', sans-serif;
}



@media (max-width: 992px) {
    .why-us-section {
        padding: 3rem 0;
    }


    .cyber-visual {
        height: 350px;
        margin-bottom: 2rem;
    }
    
    .digital-brain {
        width: 280px;
        height: 280px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cyber-title {
        font-size: 1.8rem;
        text-align: center;
    }
    

    .word-cloud-container {
        position: relative;
        width: 200%;
        left: -50%;
        height: 100%;
        opacity: 0.2;
    }
    .cyber-lead {
        text-align: center;
    }
    
    .cyber-visual {
        height: 300px;
    }
    
    .digital-brain {
        width: 240px;
        height: 240px;
    }
    
    .brain-node {
        width: 45px;
        height: 45px;
    }
    
    .node-label {
        font-size: 0.6rem;
    }
    
    .data-particle {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .why-us-section {
        padding: 2rem 0;
    }
    
    .cyber-visual {
        height: 250px;
    }
    
    .digital-brain {
        width: 200px;
        height: 200px;
    }
    
    .brain-core {
        width: 80px;
        height: 80px;
    }
    
    .brain-node {
        width: 40px;
        height: 40px;
    }
    
    .stats-overlay {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        top: 15%;
        bottom: 0;
    }
    
    .stat-item {
        width: 100%;
    }
}


/* ===== КИБЕРПАНК СЕКЦИЯ TILDA ===== */
/* .x2-cyber-section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0f1a 100%);
    overflow: hidden;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    border-bottom: 1px solid rgba(157, 0, 255, 0.2);
} */

/* Сетка фона */
.cyber-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Глитч-линии */
.glitch-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.glitch-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--neon-blue), 
        var(--neon-purple), 
        transparent
    );
    animation: glitch-scan 8s linear infinite;
}

.glitch-line-1 { top: 20%; width: 100%; animation-delay: 0s; }
.glitch-line-2 { top: 40%; width: 70%; right: 0; animation-delay: 2s; }
.glitch-line-3 { top: 60%; width: 80%; animation-delay: 4s; }

@keyframes glitch-scan {
    0% { transform: translateX(-100%); opacity: 0; }
    20% { opacity: 0.5; }
    40% { opacity: 1; }
    60% { opacity: 0.5; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* Цифровые схемы */
.cyber-circuit-left,
.cyber-circuit-right {
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    background-repeat: repeat-y;
    opacity: 0.2;
    pointer-events: none;
}

.cyber-circuit-left {
    left: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,0 L20,100 M40,0 L40,100 M60,0 L60,100 M80,0 L80,100 M0,20 L100,20 M0,40 L100,40 M0,60 L100,60 M0,80 L100,80" stroke="%2300f3ff" stroke-width="1" opacity="0.3" fill="none"/></svg>');
    background-size: 50px 50px;
}

.cyber-circuit-right {
    right: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,0 L20,100 M40,0 L40,100 M60,0 L60,100 M80,0 L80,100 M0,20 L100,20 M0,40 L100,40 M0,60 L100,60 M0,80 L100,80" stroke="%239d00ff" stroke-width="1" opacity="0.3" fill="none"/></svg>');
    background-size: 50px 50px;
}

/* Заголовок */
.section-header-cyber {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.holographic-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(0,243,255,0.1), rgba(157,0,255,0.1));
    border: 1px solid rgba(0,243,255,0.3);
    border-radius: 20px;
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0,243,255,0.2); }
    50% { box-shadow: 0 0 20px rgba(0,243,255,0.4); }
}

.cyber-title-glitch {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    position: relative;
    text-shadow: 0 0 20px rgba(0,243,255,0.3);
    padding: 0 6px;
}


.glitchn-span {
    position: relative;
    display: inline-block;
}

.glitchn-span::before,
.glitchn-span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
}

.glitchn-span::before {
    animation: glitch-1 2s infinite;
    color: var(--neon-pink);
    z-index: -1;
}

.glitchn-span::after {
    animation: glitch-2 3s infinite;
    color: var(--neon-green);
    z-index: -2;
}

@keyframes glitch-anim-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(10% 0 50% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(30% 0 10% 0); transform: translate(1px, 3px); }
    80% { clip-path: inset(40% 0 20% 0); transform: translate(-3px, -1px); }
}

.cyber-title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.decoration-line {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.decoration-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.cyber-lead-text {
    color: #ccc;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 2rem;
}

.container-2 .cyber-lead-text {
    max-width: none;
}

.text-accent {
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0,243,255,0.3);
}

/* Основная сетка */
.x2-cyber-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* Карточки */
.x2-cyber-card {
    position: relative;
    background: rgba(20, 20, 30, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}


/* Уголки карточек */
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid;
    z-index: 2;
}

.card-corner.tl {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
    border-color: var(--neon-blue);
}

.card-corner.tr {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
    border-color: var(--neon-purple);
}

.card-corner.bl {
    bottom: 10px;
    left: 10px;
    border-right: none;
    border-top: none;
    border-color: var(--neon-green);
}

.card-corner.br {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
    border-color: var(--neon-pink);
}

/* Сканирующая линия */
.card-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 243, 255, 0.02) 50%,
        transparent
    );
    background-size: 100% 4px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes scan {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Заголовок карточки */
.card-header-neon {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.warning-header {
    background: linear-gradient(90deg, rgba(255,0,200,0.1), transparent);
}

.success-header {
    background: linear-gradient(90deg, rgba(0,255,136,0.1), transparent);
}

.header-icon {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
    margin-left: 20px;
}

.header-icon i {
    font-size: 2rem;
    color: var(--neon-blue);
    z-index: 2;
}

.warning-header .header-icon i {
    color: var(--neon-pink);
}

.success-header .header-icon i {
    color: var(--neon-green);
}

.icon-pulse {
    position: absolute;
    width: 50px;
    height: 100%;
    border-radius: 50%;
    background: var(--neon-blue);
    opacity: 0.3;
    animation: icon-pulse 2s infinite;
}

.icon-pulse.success {
    background: var(--neon-green);
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0; }
}

.header-title {
    flex-grow: 1;
}

.title-code {
    display: block;
    color: #888;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    margin-bottom: 3px;
}

.header-title h3 {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin: 0;
    letter-spacing: 1px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.status-dot.danger {
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.status-dot.success {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.status-text {
    color: #888;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
}

/* Тело карточки */
.card-body-cyber {
    padding: 20px;
}

/* Метры сложности/эффективности */
.difficulty-meter,
.efficiency-meter {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.meter-value {
    color: var(--neon-blue);
    font-family: 'Orbitron', monospace;
    font-weight: bold;
}

.meter-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    border-radius: 3px;
    position: relative;
}

.meter-fill.success {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Список элементов */
.cyber-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #aaa;
}

.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0,243,255,0.05),
        transparent
    );
    transition: left 0.5s ease;
}


.item-badge {
    width: 30px;
    height: 30px;
    /* background: rgba(0,243,255,0.1); */
    border: 1px solid rgba(0,243,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: var(--neon-blue);
    flex-shrink: 0;
}

.item-badge.success {
    color: var(--neon-green);
}

.item-content {
    flex-grow: 1;
}

.list-highlight {
    color: white;
    font-size: 1.3rem;
    display: block;
    margin-bottom: 3px;
}

.item-warning,
.item-success {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.item-warning {
    background: rgba(255,0,200,0.1);
    color: var(--neon-pink);
}

.item-success {
    background: rgba(0,255,136,0.1);
    color: var(--neon-green);
}

/* Счётчик угроз */
.threat-counter {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(90deg, rgba(255,0,200,0.1), rgba(157,0,255,0.1));
    border-radius: 8px;
    margin-top: 20px;
}

.counter-label {
    color: #aaa;
    font-size: 0.9rem;
}

.counter-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: bold;
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255,0,200,0.3);
}

.counter-unit {
    color: #888;
    font-size: 0.8rem;
}

/* Технические характеристики */
.tech-specs {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border-left: 3px solid var(--neon-green);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.spec-key {
    color: #888;
}

.spec-value {
    color: var(--neon-green);
}

/* Итоговая карточка */
.x2-conclusion-cyber {
    position: relative;
    margin-top: 40px;
    border: 1px solid rgba(0,243,255,0.3);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(20,20,30,0.8), rgba(30,30,40,0.8));
    backdrop-filter: blur(10px);
}

.conclusion-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0,243,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(157,0,255,0.1) 0%, transparent 50%);
    z-index: 0;
}

.conclusion-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.conclusion-hologram {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.hologram-circle {
    width: 100%;
    height: 100%;
    background: rgba(0,243,255,0.1);
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    font-size: 2rem;
    animation: hologram-rotate 4s linear infinite;
}

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

.hologram-lines {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid rgba(0,243,255,0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.conclusion-text {
    flex-grow: 1;
}

.conclusion-title {
    color: white;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.conclusion-desc {
    color: #ccc;
    margin-bottom: 15px;
}

.text-highlight {
    color: var(--neon-blue);
    text-shadow: 0 0 5px rgba(0,243,255,0.3);
}

.conclusion-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0,255,136,0.3);
}

.metric-label {
    color: #aaa;
    font-size: 0.8rem;
}

.conclusion-qr {
    text-align: center;
    flex-shrink: 0;
}

.qr-code {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,243,255,0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.qr-code i {
    font-size: 3rem;
    color: var(--neon-blue);
}

.qr-label {
    color: #aaa;
    font-size: 0.7rem;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cyber-title-glitch {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .x2-cyber-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cyber-title-glitch {
        font-size: 2rem;
    }
    
    .conclusion-content {
        flex-direction: column;
        text-align: center;
        padding: 30px 10px;
    }
    
    .conclusion-metrics {
        justify-content: center;
    }

    .x2-conclusion-cyber {
        border-radius: 0;
    }

    .card-body-cyber {
        padding: 10px;
    }
}

@media (max-width: 768px) {

    
    .cyber-title-glitch {
        font-size: 1.8rem;
    }
    
    .cyber-lead-text {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    
    .item-badge {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .cyber-title-glitch {
        font-size: 1.5rem;
    }
    
    .header-title h3 {
        font-size: 1rem;
        max-width: 80%;
    }
    
    .title-code {
        font-size: 0.7rem;
    }
    
    .conclusion-title {
        font-size: 1.2rem;
    }
    
    .conclusion-metrics {
        flex-direction: row;
        gap: 10px;
    }
}



/* Если используете img */
.hologram-circle img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--neon-blue));
    transition: all 0.3s ease;
}

.hologram-circle:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px var(--neon-blue));
}



/* Контейнер со ступенчатым расположением */
.cyber-carousel-staggered {
    position: relative;
    width: 100%;
    height: 450px;
    padding: 20px;
}

/* Левая часть: Статичное изображение (ниже) */
.cyber-carousel-static.staggered-left {
    position: absolute;
    left: -10%;
    bottom: -20%;
    width: 70%;
    z-index: 10;
}

/* Правая часть: Карусель (выше) */
.cyber-carousel.staggered-right {
    position: absolute;
    right: -3%;
    top: 0;
    width: 60%;
    height: 380px;
    z-index: 2;
}

.static-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 250px; /* Минимальная высота для стабильности */
    overflow: hidden;
    border-radius: 12px;
    background: rgba(10, 10, 25, 0.9);
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    /* Aspect-ratio будет установлен через data-атрибут или класс */
}

/* Вариант 1: Используем aspect-ratio для конкретного соотношения */
.static-image-wrapper.ratio-1-1 {
    aspect-ratio: 1 / 1;
}

.static-image-wrapper.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.static-image-wrapper.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.static-image-wrapper.ratio-3-4 {
    aspect-ratio: 3 / 4;
}


.cyber-static-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.static-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 243, 255, 0.9), transparent);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 12px 12px;
}

.overlay-icon {
    margin-bottom: 8px;
    animation: float 3s ease-in-out infinite;
}

.overlay-text {
    color: #00f3ff;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Карусель */
.cyber-carousel {
    perspective: 1000px;
    overflow: visible;
}

.cyber-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

@media (max-width: 768px) {
    .cyber-carousel-track {
        touch-action: pan-y;
        cursor: pointer;
    }
}

.cyber-carousel-slide {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.75);
    opacity: 0.4;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    background: rgba(10, 10, 25, 0.95);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    width: 90%;
    overflow: hidden;
}

.cyber-carousel-slide.active {
    transform: translateX(-50%) scale(1) translateZ(50px);
    opacity: 1;
    z-index: 10;
    border-color: rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.3), 
                0 10px 40px rgba(0, 0, 0, 0.5);
}

.cyber-carousel-slide.prev {
    transform: translateX(-50%) translateX(-100%) scale(0.7) translateZ(-50px);
    opacity: 0.3;
    z-index: 2;
}

.cyber-carousel-slide.next {
    transform: translateX(-50%) translateX(100%) scale(0.7) translateZ(-50px);
    opacity: 0.3;
    z-index: 2;
}

.cyber-slide-header {
    display: flex;
    align-items: center;
    color: #00f3ff;
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cyber-carousel-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.cyber-slide-caption {
    text-align: center;
    padding: 10px;
    margin-top: 8px;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 6px;
    border-top: 1px solid rgba(0, 243, 255, 0.2);
}

.caption-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 0 10px currentColor;
}

.caption-text {
    display: block;
    font-size: 0.75rem;
    color: #8899a6;
    margin-top: 4px;
}

/* Управление каруселью */
.cyber-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20%;
    margin-left: 20%;
}

.cyber-carousel-btn {
    background: transparent;
    border: 1px solid #00f3ff;
    color: #00f3ff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.cyber-carousel-btn:hover {
    background: #00f3ff;
    color: #0a0a19;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    transform: scale(1.1);
}

.cyber-carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #00f3ff;
}

.carousel-dot.active {
    background: #00f3ff;
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.8);
    transform: scale(1.3);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Адаптивность */
@media (max-width: 768px) {
    /* Отключаем ступенчатое расположение на мобильном */
    .cyber-carousel-staggered {
        position: relative !important;
        height: auto !important;
        padding: 10px !important;
        display: block !important;
        overflow: visible !important;
    }

    .cyber-carousel-controls {
    margin-top: 40%;
    margin-left: 0%;
    }
    /* Статичное изображение - на всю ширину */
    .cyber-carousel-static.staggered-left {
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1 !important;
        margin-bottom: 15px;
    }
    
    .static-image-wrapper {
        min-height: auto;
        aspect-ratio: 16/9;
        width: 100%;
    }
    
    /* Карусель - на всю ширину */
    .cyber-carousel.staggered-right {
        position: relative !important;
        width: 100% !important;
        right: 0 !important;
        top: 0 !important;
        height: 320px !important;
        z-index: 2 !important;
    }
    
    /* Слайды карусели */
    .cyber-carousel-slide {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        opacity: 0.5;
        transition: all 0.5s ease;
        z-index: 1;
        background: rgba(10, 10, 25, 0.95);
        border: 1px solid rgba(0, 243, 255, 0.2);
        border-radius: 10px;
        padding: 12px;
        width: 92%;
        overflow: hidden;
    }
    
    .cyber-carousel-slide.active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        z-index: 10;
        border-color: rgba(0, 243, 255, 0.6);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    }
    
    .cyber-carousel-slide.prev {
        transform: translateX(-50%) translateX(-60%) scale(0.75);
        opacity: 0.4;
        z-index: 2;
    }
    
    .cyber-carousel-slide.next {
        transform: translateX(-50%) translateX(60%) scale(0.75);
        opacity: 0.4;
        z-index: 2;
    }
    
    .cyber-slide-header {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .cyber-carousel-img {
        border-radius: 4px;
    }
    
    .cyber-slide-caption {
        padding: 8px;
        margin-top: 6px;
    }
    
    .caption-value {
        font-size: 1.3rem;
    }
    
    .caption-text {
        font-size: 0.7rem;
    }
    
    
    .cyber-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .cyber-carousel.staggered-right {
        height: 300px !important;
    }
    
    .cyber-carousel-slide {
        width: 95%;
        padding: 10px;
        min-height: 250px;
    }
    
    .cyber-carousel-slide.prev,
    .cyber-carousel-slide.next {
        transform: translateX(-50%) translateX(0) scale(0.8);
        opacity: 0;
        pointer-events: none;
    }
    
    .cyber-slide-header {
        font-size: 0.7rem;
    }
    
    .caption-value {
        font-size: 1.1rem;
    }
    
    .static-image-wrapper {
        aspect-ratio: 4/3;
    }
}



/* Lightbox/Modal */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 10, 0.98);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: 1px solid #00f3ff;
    color: #00f3ff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: #00f3ff;
    color: #0a0a19;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.3);
}

.lightbox-caption {
    text-align: center;
    color: #00f3ff;
    padding: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .lightbox-img {
        max-height: 80vh;
    }
    
    .lightbox-caption {
        font-size: 0.8rem;
        padding: 10px;
    }
}







/* ===== КИБЕРПАНК-ПЛИТКА ===== */
.cyber-tiles-section {
    min-height: 500px;
    position: relative;
    overflow: visible;
}

.tiles-container {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tiles-container.main {
    height: 80vh;
    padding-top: 10vh;
    /* align-items: flex-start; */
    min-height: 820px;
}

.tiles-container.main .tag{
    font-size: 1.5rem;
}

/* Фото с плавающей анимацией */
.profile-image-wrapper {
    /* width: 800px; */
    height: 800px;
    animation: float-center 8s ease-in-out infinite;
    z-index: 10;

}

.profile-image-wrapper.main {
    text-align: center;
}


.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контейнер для тегов */
.floating-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
}

.floating-tags.main {
    height: 70%;
}

/* Общий стиль тегов с плавающей анимацией */
.tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid var(--neon-blue);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    z-index: 20;
    /* white-space: nowrap; */
    animation: float-tag 6s ease-in-out infinite;
}

/* Индивидуальные настройки анимации для каждого тега */
.tag-1 { 
    top: 15%; left: 10%; 
    animation-duration: 7s;
    animation-delay: 0s;
}
.tag-2 { 
    top: 25%; left: 21%; 
    animation-duration: 8s;
    animation-delay: 1s;
}
.tag-3 { 
    top: 40%; left: 15%; 
    animation-duration: 6.5s;
    animation-delay: 0.5s;
}
.tag-4 { 
    top: 10%; right: 15%; 
    animation-duration: 9s;
    animation-delay: 1.5s;
}
.tag-5 { 
    top: 30%; right: 21%; 
    animation-duration: 7.5s;
    animation-delay: 0.3s;
}
.tag-6 { 
    top: 45%; right: 10%; 
    animation-duration: 8.5s;
    animation-delay: 2s;
}
.tag-7 { 
    bottom: 20%; left: 20%; 
    animation-duration: 7.2s;
    animation-delay: 1.2s;
}
.tag-8 { 
    bottom: 30%; left: 5%; 
    animation-duration: 8.2s;
    animation-delay: 0.8s;
}
.tag-9 { 
    bottom: 15%; right: 25%; 
    animation-duration: 9.5s;
    animation-delay: 1.8s;
}
.tag-10 { 
    bottom: 25%; right: 10%; 
    animation-duration: 6.8s;
    animation-delay: 0.2s;
}
.tag-11 { 
    top: 55%; left: 25%; 
    animation-duration: 7.8s;
    animation-delay: 1.1s;
}
.tag-12 { 
    top: 60%; right: 22%; 
    animation-duration: 8.8s;
    animation-delay: 0.6s;
}
.tag-13 { 
    bottom: 5%; left: 30%; 
    animation-duration: 7.3s;
    animation-delay: 1.4s;
}
.tag-14 { 
    top: 25%; right: 2%; 
    animation-duration: 9.2s;
    animation-delay: 0.9s;
}

.tag i {
    color: var(--neon-blue);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.tag:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
    transform: scale(1.05);
    background: rgba(30, 30, 40, 0.95);
    animation-play-state: paused;
    color: white;
}

.tag:hover i {
    color: var(--neon-purple);
}

/* Анимация плавания для тегов */
@keyframes float-tag {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(5px);
    }
    75% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Адаптивность */

@media (max-width: 992px) {
    .tiles-container {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 0;
    }

    .profile-image-wrapper.main {
        height: auto;
    }

    .tiles-container.main {
        min-height: auto;
        height: auto;
    }

    .profile-image-wrapper {
        margin-bottom: 2rem;
        height: 500px;
    }
    
    .floating-tags {
        position: relative;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 2fr));
        gap: 1rem;
        height: auto;
        padding: 0 6px;
        margin-top: -100px;
    }

    .floating-tags.main {
        height: auto;
        position: relative;
        margin-top: 5vh;
    }

    .tiles-container.main .tag{
        font-size: 1rem;
    }
    .tag {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        justify-content: center;
        animation: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tag {
        font-size: 0.8rem;
        padding: 10px 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    
    .profile-image-wrapper {
        height: 400px;
    }

    .floating-tags {
        margin-top: -110px;
    }
}


.article-btn::before {
    content: "Читать от этом";
}



/* ===== ГРАФИЧЕСКАЯ ОРБИТА ===== */
.graphic-orb {
    position: absolute;
    z-index: -1;
    right: 10%;
    top: 37%;
}

.orb-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    box-shadow: 0 0 40px var(--neon-blue);
    animation: core-pulse 2s ease-in-out infinite;
    z-index: 5;
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: 50%;
    animation: ring-spin linear infinite;
}

.ring-1 {
    width: 260px;
    height: 260px;
    border-top-color: var(--neon-blue);
    border-bottom-color: var(--neon-purple);
    border-left-color: transparent;
    border-right-color: transparent;
    animation-duration: 4s;
    opacity: 0.8;
}

.ring-2 {
    width: 320px;
    height: 320px;
    border-left-color: var(--neon-blue);
    border-right-color: var(--neon-purple);
    border-top-color: transparent;
    border-bottom-color: transparent;
    animation-duration: 6s;
    animation-direction: reverse;
    opacity: 0.6;
}

.ring-3 {
    width: 480px;
    height: 480px;
    border-color: var(--neon-blue) transparent var(--neon-purple) transparent;
    border-width: 2px;
    animation-duration: 8s;
    opacity: 0.4;
}

.orb-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(0, 243, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(157, 0, 255, 0.15) 0%, transparent 40%);
    animation: particles-move 10s ease-in-out infinite;
    border-radius: 50%;
}

/* Анимации */
@keyframes core-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 40px var(--neon-blue);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 0 60px var(--neon-purple);
    }
}

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

@keyframes particles-move {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@media (max-width: 992px) {
    .graphic-orb {
        display: none;
    }  
    

}


/* ✅ Принудительный fullscreen для модалки */
#viewImageModal .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

#viewImageModal .modal-body {
    height: calc(100vh - 140px);
}

#viewImageModal .modal-body img {
    max-height: 85vh;
    max-width: 95vw;
    margin-top: 2%;
}

.alert-info {
    color: #9d00ff;
    background-color: #ffffff00;
    border-color: #9d00ff;
}




/* === МОДАЛЬНОЕ ОКНО === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 15px; /* ← отступы для мобильных */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cyber-modal {
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid rgba(0, 243, 255, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh; /* ← ограничение по высоте */
    overflow-y: auto; /* ← скролл только внутри модалки */
    padding: 2rem;
    position: relative;
    box-shadow: 
        0 0 30px rgba(0, 243, 255, 0.2),
        inset 0 0 15px rgba(0, 243, 255, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    scrollbar-width: thin;
    scrollbar-color: #00f3ff rgba(0, 0, 0, 0.3);
}

.cyber-modal::-webkit-scrollbar {
    width: 6px;
}

.cyber-modal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.cyber-modal::-webkit-scrollbar-thumb {
    background: #00f3ff;
    border-radius: 3px;
}

.modal-overlay.active .cyber-modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
}

.modal-close:hover {
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
    transform: rotate(90deg);
}

.modal-title {
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.modal-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.form-check-input[type=checkbox] {
    position: absolute;

}



/* Форма внутри модалки */
.cyber-label {
    color: #ccc;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.cyber-input,
.cyber-textarea {
    width: 100%;
    background: rgba(20, 20, 40, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cyber-input:focus,
.cyber-textarea:focus {
    outline: none;
    border-color: #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.cyber-textarea {
    resize: vertical;
    min-height: 90px;
    max-height: 150px;
}

/* Чекбоксы */
.cyber-checkbox {
    accent-color: #00f3ff;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.cyber-check-label {
    color: #aaa;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.neon-link {
    color: #00f3ff;
    text-decoration: none;
    transition: all 0.3s;
}

.neon-link:hover {
    color: #00ccff;
    text-decoration: underline;
}

/* Кнопка отправки */
.cyber-btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .cyber-modal {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .cyber-label {
        font-size: 0.88rem;
    }
    
    .cyber-input,
    .cyber-textarea {
        padding: 0.75rem 0.9rem;
        font-size: 0.92rem;
    }
    
    .cyber-textarea {
        min-height: 80px;
    }
    
    .form-check {
        gap: 6px;
    }
    
    .cyber-check-label {
        font-size: 0.87rem;
    }
    
    .cyber-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        font-size: 1.5rem;
        width: 28px;
        height: 28px;
    }
}




/* Кнопка-стрелка в углу блока */
.card-toggle {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.4);
    color: #00f3ff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.card-toggle.success {
    border: 1px solid rgb(0 255 136);
    color: #00ff88;
}

.card-toggle.warning {
    border: 1px solid rgb(255 0 200);
    color: #ff00c8;
}


/* Стрелка вниз при свёрнутом состоянии */
.card-toggle i {
    transition: transform 0.3s ease;
}

/* Стрелка вверх при развёрнутом */
.x2-cyber-card:not(.collapsed) .card-toggle i {
    transform: rotate(180deg);
}

/* Сворачивание контента */
.x2-cyber-card.collapsed .card-body-cyber {
    display: none;
}

/* На десктопе всегда развёрнуто + скрыть кнопку */
@media (min-width: 768px) {
    .card-toggle {
        display: none !important;
    }
    .x2-cyber-card.collapsed .card-body-cyber {
        display: block !important;
    }
}

/* 🔹 Подсветка сезонных запросов в таблице */
.seasonal-row {
    background: rgba(255, 165, 0, 0.08) !important;
    border-left: 3px solid #ffa500;
    transition: background 0.2s ease;
}

.seasonal-row:hover {
    background: rgba(255, 165, 0, 0.15) !important;
}

/* 🔹 Заголовки столбцов сезонности */
th.text-info {
    color: var(--neon-cyan, #00f3ff) !important;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
    position: relative;
}

th.text-info::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan, #00f3ff), transparent);
}

/* 🔹 Анимация подсветки чекбоксов */
.neon-highlight {
    animation: neonPulse 0.5s ease;
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 243, 255, 0); }
    50% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.8); }
}



/* ===== КИБЕР-ЛЕВОЕ МЕНЮ (FIXED) ===== */
.cyber-sidebar {
    position: fixed;
    padding: 30px 0;
    left: 0;
    top: 80px; /* Отступ под хедер */
    height: 90%;
    width: 300px;
    background: #0a0a0a;
    z-index: 9998;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.left-block {
    padding-top: 10px;
    height: 100%;
    width: 300px;
    position: relative; /* ✅ Было absolute — может ломать высоту */
    background: #0a0a0a;
}

/* Скроллбар */
.cyber-sidebar::-webkit-scrollbar { width: 4px; }
.cyber-sidebar::-webkit-scrollbar-track { background: rgba(0, 243, 255, 0.1); }
.cyber-sidebar::-webkit-scrollbar-thumb { background: #00f3ff; border-radius: 4px; }

@keyframes pulse-side { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }


/* Категории */
.menu-category { margin-bottom: 8px; }
.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid #00f3ff;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}
.category-header:hover { background: rgba(0, 243, 255, 0.1); }
.category-header i:not(.toggle-icon) { color: #00f3ff; font-size: 0.9rem; }
.category-header span {
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.category-code {
    color: #666;
    font-family: 'Consolas', monospace;
    font-size: 0.65rem;
}
.toggle-icon {
    font-size: 0.7rem;
    color: #00f3ff;
    transition: transform 0.3s ease;
    display: inline-block;
}
.category-header[aria-expanded="false"] .toggle-icon {
    transform: rotate(-90deg);
}

/* Список пунктов — анимация аккордеона */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    max-height: 5000px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.menu-list.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

@media (min-width: 992px) {
    .menu-list:not(.collapsed) {
        transition: none;
    }
}

/* Пункты меню */
.menu-list li { margin: 2px 0; }
.menu-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px 8px 25px;
    color: #aaa;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}
.menu-list a:hover {
    background: rgba(0, 243, 255, 0.05);
    color: white;
    border-left-color: #00f3ff;
    padding-left: 30px;
}
.menu-list .menu-icon {
    width: 24px;
    font-size: 0.85rem;
    color: #666;
}
.menu-list a:hover .menu-icon { color: #00f3ff; }
.menu-list .menu-code {
    margin-left: auto;
    font-family: 'Consolas', monospace;
    font-size: 0.65rem;
    color: #444;
    transition: color 0.2s;
}
.menu-list a:hover .menu-code { color: #9d00ff; }

/* 🔒 Замазанные/заблокированные пункты меню */
.cyber-sidebar .menu-list li.locked-item {
    position: relative;
    pointer-events: none; /* Полностью отключает клики и переходы */
    overflow: hidden;
    margin-bottom: 4px;
    border-radius: 6px;
}

/* Размытие и обесцвечивание ссылки и иконки */
.cyber-sidebar .menu-list li.locked-item a,
.cyber-sidebar .menu-list li.locked-item .menu-icon {
    filter: blur(3px) grayscale(100%);
    opacity: 0.35;
    transition: all 0.3s ease;
    cursor: not-allowed;
    user-select: none;
}

/* Неоновая подпись поверх (чёткая, без размытия) */
.cyber-sidebar .menu-list li.locked-item::after {
    content: '🔒 Для тайного владыки';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: #00f3ff;
    background: rgba(10, 10, 10, 0.92);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.35);
    white-space: nowrap;
    z-index: 20;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    filter: blur(0) !important; /* Гарантируем чёткость текста */
    pointer-events: none;
}

/* Лёгкая подсветка при наведении на категорию (опционально) */
.cyber-sidebar .menu-list li.locked-item:hover a {
    opacity: 0.5;
}

/* ===== ОСНОВНОЙ КОНТЕНТ И ФУТЕР ===== */
.main-content-wrapper {
    margin-left: 300px;
    padding: 20px;
    min-height: calc(100vh - 80px);
    transition: margin-left 0.3s ease;
}

.footer {
    margin-left: 300px;
    transition: margin-left 0.3s ease;
}

/* ===== КНОПКА-ТОГГЛ (универсальная) ===== */
.sidebar-toggle-btn {
    display: none;
}

/* .sidebar-toggle-btn:hover {
    background: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.7);
    transform: scale(1.05);
} */


/* Две иконки в одной кнопке */
.sidebar-toggle-btn i.fa-times {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.sidebar-toggle-btn[aria-expanded="true"] i.fa-bars {
    opacity: 0;
    transform: rotate(90deg);
}
.sidebar-toggle-btn[aria-expanded="true"] i.fa-times {
    opacity: 1;
    transform: rotate(0);
}

/* ===== МОБИЛЬНЫЕ СТИЛИ (исправлено: убраны дубликаты) ===== */

@media (max-width: 991px) {
    .cyber-sidebar {
        top: 70px;
        height: calc(100vh - 70px);
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }
    
    .cyber-sidebar.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Контент без отступов */
    .main-content-wrapper,
    .footer {
        margin-left: 0 !important;
    }
    
    .sidebar-toggle-btn {
        position: fixed;
        z-index: 9999;
        width: 100%;
        height: 30px;
        background: rgba(0, 243, 255, 0.15);
        border: 1px solid #00f3ff00;
        color: #00f3ff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
        backdrop-filter: blur(4px);
        left: 0;
        top: 70px;
    }

    /* Затемнение фона */
    .sidebar-overlay {
        position: fixed;
        top: 70px; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: 1040;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ===== ДЕСКТОП СТИЛИ ===== */
@media (min-width: 992px) {
    .cyber-sidebar {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    /* Кнопка-«выпуклость» в правом верхнем углу меню */
    .sidebar-toggle-btn {
        right: -22px;
        top: 20px;
    }
    
    /* Свёрнутое состояние меню */
    .cyber-sidebar.collapsed {
        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;
    }
    
    /* Контент сдвигается при сворачивании */
    .cyber-sidebar.collapsed ~ .main-content-wrapper,
    .cyber-sidebar.collapsed ~ .footer {
        margin-left: 0;
    }
}



/* ===== ТАРИФЫ (ТЕРМИНАЛЬНЫЙ СТИЛЬ С ОПИСАНИЕМ) ===== */

/* === 🔹 ТАРИФЫ — скрыты изначально (анимация через JS) === */
.terminal-row {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.terminal-row.loaded {
    opacity: 1;
    transform: translateX(0);
}

/* Задержка для каждого тарифа (лесенка) */
.terminal-row:nth-child(1) { transition-delay: 0.1s; }
.terminal-row:nth-child(2) { transition-delay: 0.2s; }
.terminal-row:nth-child(3) { transition-delay: 0.3s; }
.terminal-row:nth-child(4) { transition-delay: 0.4s; }
.terminal-row:nth-child(5) { transition-delay: 0.5s; }
.terminal-row:nth-child(6) { transition-delay: 0.6s; }

/* === 🔹 МИГАЕТ ТОЛЬКО КУРСОР === */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.terminal-line .blink {
    animation: blink 1s step-end infinite;
    color: #00f3ff;
}

/* === 🔹 НЕОНОВАЯ ПОДСВЕТКА ПОПУЛЯРНОГО ТАРИФА === */
.terminal-row.popular.loaded {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    border-left: 3px solid #00f3ff;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 243, 255, 0.4); }
    50% { box-shadow: 0 0 25px rgba(0, 243, 255, 0.8); }
}

/* Блокируем клики пока тарифы не загрузились */
.terminal-table.loading {
    pointer-events: none;
}

/* === 🔹 КЛАСС ДЛЯ JS-АНИМАЦИИ СТРОК === */
.terminal-line.animate {
    animation: terminalLine 0.3s ease forwards;
}

@keyframes terminalLine {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === 🔹 ОСНОВНЫЕ СТИЛИ ТЕРМИНАЛА === */
.terminal-tarifs {
    background: #0a0a0f;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.terminal-tarifs .terminal-header {
    background: #0d0d12;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: #00f3ff;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    margin-left: auto;
    letter-spacing: 0.5px;
}

.terminal-tarifs .terminal-body {
    padding: 1.5rem;
}

.terminal-tarifs .terminal-line {
    color: #00ff88;
    font-family: 'Consolas', monospace;
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-10px);
}

.terminal-tarifs .terminal-line .prompt {
    color: #00f3ff;
    margin-right: 10px;
}

.terminal-table {
    margin: 20px 0;
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.terminal-row {
    min-height: 100px;
    display: grid;
    grid-template-columns: 200px 0.8fr 150px 150px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Consolas', monospace;
    justify-content: space-between;
}

.terminal-row:last-child {
    border-bottom: none;
}

.terminal-row:hover {
    background: rgba(0, 243, 255, 0.05);
}

.terminal-row.popular {
    background: rgba(157, 0, 255, 0.05);
    border-left: 2px solid #9d00ff;
}

.terminal-cell.name {
    color: #00f3ff;
    font-size: 1.3rem;
}

.terminal-cell.desc {
    display: flex;
    flex-direction: row;
}

.desc-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.terminal-row.popular .desc-title {
    color: #9d00ff;
}

.desc-text {
    color: #888;
    font-size: 1.2rem;
    font-family: 'Exo 2', sans-serif;
    margin-top: 2px;
}

.terminal-cell.price {
    color: #00ff88;
    font-size: 1.3rem;
    font-weight: bold;
}

.terminal-cell.action {
    color: #666;
    font-size: 1rem;
    transition: color 0.2s;
}

.terminal-row:hover .terminal-cell.action {
    color: #00f3ff;
}

/* Адаптив */
@media (max-width: 800px) {
    .terminal-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    .terminal-cell.desc {
        align-items: center;
    }
    .terminal-cell.action,
    .terminal-cell.price {
        text-align: center;
    }
    .terminal-tarifs .terminal-body {
        padding: 1rem;
    }
}


/* Кейсы */

.seo-case-main {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Мета-теги в шапке */
.seo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.seo-tag {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px; /* Аккуратные закругления */
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.seo-tag:hover {
    border-color: var(--primary-cyan);
    color: var(--text-main);
}

.seo-tag i {
    color: var(--primary-cyan);
}

/* Метрики (цифры) */
.seo-metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.metric-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Верхняя голубая линия-подсветка */
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-cyan);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan-dim);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--primary-cyan-dim);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-cyan);
    margin-bottom: 8px;
    font-family: 'Orbitron', monospace; /* Техничный шрифт для цифр */
}

.metric-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* Разделы */
.seo-section {
    margin-bottom: 50px;
}

.seo-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.seo-title i {
    color: var(--primary-cyan);
}

.seo-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Сетка "О проекте" */
.seo-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.info-item {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: var(--primary-cyan);
    width: 20px;
    text-align: center;
}

.info-item .label {
    color: var(--text-muted);
}

/* ИСТОРИЯ (Раскрывающийся аккордеон) */
.seo-details {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.seo-details[open] {
    border-color: var(--primary-cyan-dim);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.seo-summary {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    list-style: none; /* Убирает стандартный треугольник в Chrome */
    user-select: none;
}

.seo-summary::-webkit-details-marker {
    display: none; /* Убирает треугольник в старых Safari */
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-content i {
    color: var(--primary-cyan);
}

.arrow-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

/* Вращение стрелочки при открытии */
.seo-details[open] .arrow-icon {
    transform: rotate(180deg);
    color: var(--primary-cyan);
}

.seo-details-body {
    padding: 0 25px 25px 25px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
    padding-top: 20px;
}

.seo-details-body p {
    margin: 0 0 15px 0;
}

.log-end {
    font-family: monospace;
    color: var(--primary-cyan);
    opacity: 0.5;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* Список "Что сделано" */
.seo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-list li {
    position: relative;
    padding-left: 20px;
    color: var(--text-main);
    line-height: 1.5;
}

.seo-list li::before {
    content: "▹"; /* Футуристичный маркер списка */
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Карточки с графиками */
.chart-box {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.chart-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2); /* Чуть темнее шапка графика */
}

.chart-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-header i {
    color: var(--primary-cyan);
}

.chart-body {
    padding: 30px;
    text-align: center;
}

.chart-body img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.chart-caption {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Адаптив */
@media (max-width: 992px) {
    .seo-metrics {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .seo-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .seo-info-grid {
        grid-template-columns: 1fr;
    }
    .seo-list {
        grid-template-columns: 1fr;
    }
    .chart-body {
        padding: 15px;
    }
    .seo-title {
        font-size: 1.3rem;
    }
}


.sidebar-sticky {
    position: fixed;
}

.sidebar-sticky .card-cyber:hover {
    border-color: none !important;
    transform: none !important;
    box-shadow: none !important;

}
.sidebar-sticky .card-cyber.p-4 {
    background: #161925;
    border: 1px solid var(--border-color);
}

/* Конец кейсов */
/* ============================================================================
   === SEO_RAB: ГЛОБАЛЬНОЕ МОДАЛЬНОЕ ОКНО ОШИБОК ===
   ============================================================================ */

.seo-rab-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.seo-rab-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.seo-rab-modal {
    position: relative;
    max-width: 520px;
    width: 90%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(15, 15, 20, 0.98) 100%);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem 2rem;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
    animation: seoRabModalSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes seoRabModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Неоновая рамка с анимацией */
.cyber-glow-border {
    border: 1px solid rgba(0, 243, 255, 0.3);
    position: relative;
}

.cyber-glow-border::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--neon-cyan, #00f3ff), var(--neon-pink, #ff00c8), var(--neon-cyan, #00f3ff));
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: cyberGlowRotate 3s linear infinite;
}

.cyber-glow-border:hover::before {
    opacity: 0.5;
}

@keyframes cyberGlowRotate {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.seo-rab-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.seo-rab-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.seo-rab-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seo-rab-icon-warning {
    font-size: 1.8rem;
    color: var(--neon-pink, #ff00c8);
    text-shadow: 0 0 10px rgba(255, 0, 200, 0.6);
    animation: seoRabIconPulse 2s ease-in-out infinite;
}

@keyframes seoRabIconPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.seo-rab-modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-cyan, #00f3ff);
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.seo-rab-modal-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin: 0 0 1.5rem 0;
    font-family: 'Exo 2', sans-serif;
}

.seo-rab-modal-body {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-family: 'Exo 2', sans-serif;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-left: 3px solid var(--neon-pink, #ff00c8);
}

.seo-rab-btn-cyber {
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: transparent;
    color: var(--neon-cyan, #00f3ff);
    border: 1px solid var(--neon-cyan, #00f3ff);
    border-radius: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.seo-rab-btn-cyber:hover {
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.seo-rab-btn-cyber:active {
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 576px) {
    .seo-rab-modal {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        width: 95%;
    }
    
    .seo-rab-modal-title {
        font-size: 1.1rem;
    }
    
    .seo-rab-modal-body {
        font-size: 0.95rem;
        padding: 1rem;
    }
}



/* Миниатюры команды */


.foto-mini {
    height: 150px;
    object-fit: cover;
    position: relative;
    overflow: visible;
}

.foto-mini._1 {
    top: 85px;
}

.foto-mini._2 {
    top: 73px;
}

.foto-mini._3 {
    top: 67px;
}

.foto-mini._4 {
    top: 85px;
}


@media (max-width: 576px) {
    .foto-mini._1 {
        top: 0;
    }

    .foto-mini._2 {
        top: 0;
    }

    .foto-mini._3 {
        top: 0;
    }

    .foto-mini._4 {
        top: 0;
    }

}