@charset "UTF-8";

/* ==========================================================================
   1. КИБЕР-ИНДУСТРИАЛЕН ХИРОУ СЕКТОР (БАНЕР НА СТРАНИЦАТА)
   ========================================================================== */
.cyber-industrial-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    background: #0a0f14;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.cyber-grid-bg {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background-image: 
        linear-gradient(to right, rgba(227, 6, 19, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 42, 58, 0.4) 2px, transparent 2px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 12s linear infinite;
    opacity: 0.7;
}

.laser-beam {
    position: absolute;
    width: 150%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e30613, #ff6b75, #e30613, transparent);
    box-shadow: 0 0 20px #e30613, 0 0 40px #ff6b75;
    opacity: 0.4;
    filter: blur(1px);
}

.beam-1 { top: 30%; left: -25%; transform: rotate(-15deg); animation: laserScan1 7s ease-in-out infinite alternate; }
.beam-2 { bottom: 25%; right: -25%; transform: rotate(15deg); animation: laserScan2 9s ease-in-out infinite alternate; }

.hero-content-overlay {
    position: relative;
    z-index: 5;
    text-align: center;
    color: #ffffff;
    pointer-events: none;
}

.glitch-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 8px;
    line-height: 1;
    margin-bottom: 15px;
    position: relative;
    color: #fff;
    text-shadow: 0.05em 0 0 rgba(227, 6, 19, 0.75), -0.025em -0.05em 0 rgba(0, 76, 255, 0.75), 0.025em 0.05em 0 rgba(0, 255, 116, 0.75);
    animation: glitch 5s infinite;
}

.cyber-line {
    width: 0; height: 4px;
    background: #e30613;
    margin: 20px auto 0 auto;
    box-shadow: 0 0 15px #e30613;
    animation: lineExtend 2.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 6px;
    color: #cccccc;
    opacity: 0;
    animation: fadeInUp 1.5s ease 1s forwards;
}

.spark {
    position: absolute;
    width: 5px; height: 5px;
    background: #ff8c00;
    box-shadow: 0 0 8px #ff2a00, 0 0 15px #e30613;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkFly 0.6s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}


/* ==========================================================================
   2. ИНЖЕНЕРИНГОВ КАПАЦИТЕТ
   ========================================================================== */
.capabilities-section {
    background: #ffffff;
    padding: 60px 0;
    border-bottom: 1px solid #f0f3f6;
    position: relative;
    z-index: 10;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.capability-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 6px;
    border: 1px solid #e4e8ed;
    transition: all 0.3s ease;
}

.capability-card:hover {
    border-color: #1a2a3a;
    box-shadow: 0 10px 25px rgba(26, 42, 58, 0.05);
}

.cap-num {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: #e30613;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid #e30613;
    padding-bottom: 2px;
}

.capability-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #1a2a3a;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.capability-card p {
    color: #5a6a7a;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ==========================================================================
   3. КАТАЛОГ С ПРОДУКТИ (ГРИД, КАРТИ И БУТОНИ)
   ========================================================================== */
.catalog-section {
    background: #f5f7fa;
    border-top: 1px solid #e4e8ed;
    padding: 80px 0;
    width: 100%;
}

.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-family: 'Oswald', sans-serif; font-size: 2.5rem; text-transform: uppercase; color: #1a2a3a; }
.section-title .line { width: 60px; height: 4px; background: #e30613; margin: 15px auto; border-radius: 2px; }

.filter-buttons-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #ffffff;
    color: #4e5d6c;
    border: 1px solid #e4e8ed;
    padding: 12px 26px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.filter-btn:hover, .filter-btn.active {
    background: #1a2a3a;
    color: #ffffff;
    border-color: #1a2a3a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 42, 58, 0.15);
}

.catalog-section .product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
}

.catalog-section .product-card {
    display: flex;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 560px !important;
    background: #ffffff !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
}

.catalog-section .product-card:hover {
    border-color: rgba(227, 6, 19, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
    height: 230px;
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.catalog-section .product-card:hover .product-image img { transform: scale(1.04); }

.catalog-section .product-info {
    padding: 25px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: auto !important;
}

.catalog-section .product-category {
    color: #bf1e2e !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-bottom: 6px !important;
}

.catalog-section .product-info h3 {
    font-size: 1.4rem !important;
    color: #1a2a3a !important;
    margin: 0 0 15px 0 !important;
    font-family: 'Oswald', sans-serif;
    line-height: 1.4 !important;
    display: block !important;
}

.catalog-section .tech-spec-list {
    background: #f8f9fa !important;
    border-left: 3px solid #bf1e2e !important;
    padding: 15px !important;
    margin-top: auto !important; 
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    flex-grow: 1 !important;
    justify-content: center !important;
}

.catalog-section .spec-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.9rem !important;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 4px !important;
}
.catalog-section .spec-row:last-child { border-bottom: none !important; }
.catalog-section .spec-label { font-weight: 700 !important; color: #1a2a3a !important; }
.catalog-section .spec-value { color: #666666 !important; font-weight: 700 !important; font-family: 'Oswald', sans-serif; }

.catalog-section .btn-pdf-spec {
    display: block !important;
    width: 100% !important;
    padding: 13px !important;
    background: #1a2a3a !important;
    color: #ffffff !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-family: 'Oswald', sans-serif !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    margin-top: auto !important;
    transition: background 0.2s ease;
}
.catalog-section .btn-pdf-spec:hover { background: #bf1e2e !important; }

/* ==========================================================================
   4. ВАРИАНТ 3: ИНТЕРАКТИВНО КИБЕР ТАБЛО ПО ЦЕХОВЕ (GRID СТИЛ) - СВЕТЛА ТЕМА
   ========================================================================== */
.gallery-section.state-grid-variant {
    background: #f4f5f7 !important; /* Светъл индустриален кибер фон */
    padding: 100px 0 !important;
    border-top: 2px solid #dee5ec;
    position: relative;
    overflow: hidden;
}

/* Фина чертежна решетка за фон */
.gallery-section.state-grid-variant::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(227, 6, 19, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(227, 6, 19, 0.04) 1px, transparent 1px);
    background-size: 35px 35px;
    pointer-events: none;
    z-index: 0;
}

/* Системен лайв-мониторинг бар */
.tech-live-indicator {
    font-family: monospace;
    color: #e30613;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pulse-dot {
    width: 8px; height: 8px; background: #e30613; border-radius: 50%;
    box-shadow: 0 0 10px #e30613; animation: techPulse 1.6s infinite ease-in-out;
}
@keyframes techPulse { 
    0%, 100% { opacity: 0.4; transform: scale(1); } 
    50% { opacity: 1; box-shadow: 0 0 14px #e30613; transform: scale(1.1); } 
}

.gallery-section.state-grid-variant .section-title h2 {
    color: #131212 !important;
}
.gallery-section.state-grid-variant .section-desc {
    color: #424952; max-width: 650px; margin: 15px auto 0 auto; font-size: 0.95rem; line-height: 1.6;
}

/* Индустриални бутони за табове */
.gallery-tech-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 45px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.g-tab-btn {
    background: #1a1d20;
    color: #ffffff;
    border: 1px solid #1a1d20;
    padding: 12px 22px;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.g-tab-btn:hover {
    color: #e30613;
    border-color: #e30613;
    background: #24282c;
}
.g-tab-btn.active {
    color: #ffffff;
    background: #e30613;
    border-color: #e30613;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    font-weight: bold;
}

/* Решетка за картите */
.gallery-tech-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    position: relative;
    z-index: 2;
    width: 100% !important;
}

/* Картите изпъкват с чиста бяла основа */
.tech-grid-card {
    background: #ffffff; 
    border: 1px solid #e1e6eb;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.tech-grid-card:hover {
    border-color: #e30613;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12); /* По-дълбока сянка за изпъкване */
    transform: translateY(-5px);
}

.tech-card-inner {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 4px;
}

/* Снимките са ярки, цветни и изпъкват напълно */
.tech-grid-card img {
    width: 100%; height: 100%; object-fit: cover;
    filter: none !important; /* Премахнато пълно затъмняване и сиви филтри */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.tech-grid-card:hover img {
    transform: scale(1.03); /* Фино увеличение при ховър за динамика */
}

/* Изчистен бруталистичен таг */
.tech-card-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(26, 29, 32, 0.85); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    font-family: monospace;
    font-size: 0.75rem;
    color: #ffffff;
    letter-spacing: 1px;
    border-radius: 3px;
    z-index: 3;
}

/* Секция под снимката - БЕЗ градиент, чист и ясен текст */
.tech-card-meta {
    position: relative; /* Променено от absolute, за да излезе ПОД снимката и да не я закрива с градиент */
    background: transparent;
    padding: 12px 5px 2px 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tech-meta-idx {
    font-family: monospace; font-weight: 700; color: #e30613; font-size: 0.95rem;
}
.tech-card-meta h4 {
    font-family: 'Oswald', sans-serif; 
    color: #1a1d20; /* Тъмен текст за перфектен контраст в светлата тема */
    font-size: 1.05rem;
    text-transform: uppercase; margin: 0; letter-spacing: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}


/* ==========================================================================
   5. ФУТЪР
   ========================================================================== */
.footer { position: relative; border-top: 6px solid #1a2a3a; background: #0d151d; padding: 30px 0; }
.footer::before { content: ""; position: absolute; top: -6px; left: 0; width: 100%; height: 6px; background: repeating-linear-gradient(45deg, #e30613, #e30613 10px, #1a2a3a 10px, #1a2a3a 20px); }
.footer-bottom { text-align: center; color: #7f93a7; font-size: 0.9rem; }


/* ==========================================================================
   6. ФИКС ЗА ТЕХНИЧЕСКИ МОДАЛЕН ПАСПОРТ (ОТКЛЮЧЕН СКРОЛБАР)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(5, 8, 12, 0.92);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-layout {
    display: flex !important;
    flex-direction: row !important;
    background: #0d151d;
    border: 1px solid #1e2d3b;
    max-width: 95%;
    width: 1000px;
    height: 85vh !important;
    max-height: 85vh !important;
    border-radius: 6px;
    box-shadow: 0 35px 80px rgba(0,0,0,0.7);
    overflow: hidden !important;
}

.modal-image-side {
    flex: 1.2 !important;
    height: 100% !important;
    background: #070c10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.modal-image-side img { max-width: 95%; max-height: 90%; object-fit: contain; }

.modal-info-side {
    flex: 0.8 !important;
    padding: 40px !important;
    height: 100% !important;
    max-height: 85vh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    background: #0d151d;
    position: relative;
    border-left: 1px solid #1e2d3b;
}

.modal-info-side::-webkit-scrollbar { width: 6px; }
.modal-info-side::-webkit-scrollbar-track { background: #070c10; }
.modal-info-side::-webkit-scrollbar-thumb { background: #e30613; border-radius: 3px; }

.passport-series { color: #e30613; font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 3px; display: block; }
.passport-title { color: #ffffff; font-family: 'Roboto', sans-serif; font-size: 1.7rem; font-weight: 300; margin-top: 5px; margin-bottom: 25px; }
.blueprint-corner { position: absolute; bottom: 15px; right: 15px; color: rgba(227, 6, 19, 0.2); font-family: monospace; font-size: 1.3rem; }
.close-modal { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; transition: color 0.2s ease; z-index: 10; }
.close-modal:hover { color: #e30613; }

.passport-table { width: 100% !important; margin-bottom: 25px !important; border-collapse: collapse; }


/* ==========================================================================
   7. АДАПТИВНОСТ И АНИМАЦИИ
   ========================================================================== */
@media (max-width: 880px) {
    .modal-layout { flex-direction: column !important; max-height: 90vh !important; height: auto !important; overflow-y: auto !important; }
    .modal-info-side { padding: 30px !important; border-left: none; border-top: 1px solid #1e2d3b; height: auto !important; max-height: none !important; overflow-y: visible !important; }
    .modal-image-side { padding: 20px; height: auto !important; }
}

@media (max-width: 768px) {
    .filter-buttons-wrapper { gap: 8px; }
    .filter-btn { padding: 10px 16px; font-size: 0.9rem; width: 100%; text-align: center; }
    .catalog-section .product-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .gallery-tech-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .g-tab-btn { width: 100%; text-align: center; }
}

@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 600px; } }
@keyframes laserScan1 { 0% { transform: translateY(-30px) rotate(-15deg); opacity: 0.2; } 100% { transform: translateY(120px) rotate(-10deg); opacity: 0.3; } }
@keyframes laserScan2 { 0% { transform: translateY(60px) rotate(15deg); opacity: 0.4; } 100% { transform: translateY(-100px) rotate(20deg); opacity: 0.1; } }
@keyframes glitch { 0%, 100% { text-shadow: 0.05em 0 0 rgba(227, 6, 19, 0.75), -0.05em -0.025em 0 rgba(0, 76, 255, 0.75); } 50% { text-shadow: -0.05em -0.025em 0 rgba(227, 6, 19, 0.75), 0.025em 0.025em 0 rgba(0, 76, 255, 0.75); } }
@keyframes lineExtend { to { width: 180px; } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } from { opacity: 0; transform: translateY(15px); } }
@keyframes sparkFly { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--move-x), var(--move-y)) scale(0); opacity: 0; } }
@keyframes zoomInModal { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* ==========================================================================
   8. НОВ СТИЛ ЗА СНИМКОВАТА ГАЛЕРИЯ (ИЗЧИСТЕН И ЛЕК)
   ========================================================================== */
.light-gallery-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(5, 8, 12, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.gallery-modal-content {
    position: relative;
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomInModal 0.3s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    border-radius: 4px;
}

.gallery-caption {
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.close-gallery {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 45px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 100001;
}
.close-gallery:hover {
    color: #e30613;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gallery-modal-content { max-width: 95%; }
    .close-gallery { top: 10px; right: 20px; font-size: 35px; }
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 32px;
    padding: 15px 22px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100002;
    border-radius: 4px;
    font-family: monospace;
}
.prev-btn { left: 40px; }
.next-btn { right: 40px; }
.gallery-nav-btn:hover {
    background: #e30613;
    color: #ffffff;
    border-color: #e30613;
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.5);
}

@media (max-width: 576px) {
    .prev-btn { left: 10px; padding: 10px 15px; font-size: 24px; }
    .next-btn { right: 10px; padding: 10px 15px; font-size: 24px; }
}
/*проба*/
/* Еднакъв стил за активните бутони в двете менюта */
.filter-btn.active-sync, .g-tab-btn.active-sync {
    background-color: #e30613 !important;
    color: #ffffff !important;
    border: 1px solid #e30613 !important;
    box-shadow: 0 4px 15px rgba(227, 6, 19, 0.4);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}