@charset "UTF-8";

/* ==========================================================================
   ОПТИМИЗИРАНИ СТИЛОВЕ - СТРАНИЦА "ЗА НАС"
   ========================================================================== */

/* 1. HERO СЕКЦИЯ С ВИДЕО ФОН (ГОРЕ) */
.inner-hero-slider {
    position: relative;
    padding: 180px 0;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Премахваме всякакви филтри, за да остане оригиналният цвят */
    filter: none !important; 
}

/* Изчистваме стария overlay изцяло, ако е останал в кеша */
.inner-hero-slider .video-overlay {
    display: none !important;
}

.inner-hero-slider .container { 
    position: relative; 
    z-index: 3; 
}

/* Добавяме плътна черна сянка под самите букви, за да се четат перфектно */
.inner-hero-slider h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    /* Силна сянка зад текста, за да изпъква над светлите части на видеото */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.inner-hero-slider p {
    font-size: 1.3rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 1px;
    max-width: 850px;
    margin: 0 auto;
    /* Сянка и за подзаглавието */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* 2. СЕКЦИЯ "ТРАНСВАГОН ДНЕС" */
.about-content {
    padding: 100px 0 80px 0;
    background: #ffffff;
}

.about-text .section-title { text-align: left; margin-bottom: 30px; }
.about-text .section-title h2 { font-family: 'Oswald', sans-serif; font-size: 2.6rem; color: var(--text-dark); }
.about-text .section-title .line { width: 60px; height: 5px; background: var(--brand-red); margin-top: 10px; }

.lead {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 35px;
    line-height: 1.6;
    border-left: 4px solid var(--brand-red);
    padding-left: 18px;
}

.about-text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.about-text-columns .column p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.8;
    text-align: justify;
}

.about-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.stat-box {
    background: var(--light-bg);
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    border-left: 4px solid var(--brand-red);
    box-shadow: var(--shadow-soft);
}

.stat-box span {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

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

/* 3. СРЕДНА СЕКЦИЯ СЪС СНИМКА (ПАРАЛАКС МАГИЯ) */
.wide-image-section {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-image: url('img/az2.png'); /* Твоята брутална статична снимка */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Паралакс */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid var(--brand-red);
    border-bottom: 2px solid var(--brand-red);
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
    z-index: 1;
}

.image-caption {
    position: relative;
    z-index: 2;
    text-align: center;
}

.image-caption p {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

/* 4. МИСИЯ И ЦЕННОСТИ */
.values-section {
    background: #1a2a3a;
    padding: 100px 0;
    color: #ffffff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 10px;
    border-top: 5px solid var(--brand-red);
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
}

.value-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.value-card p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.7;
}

/* 5. ИСТОРИЯ TIMELINE */
.history-section {
    background: var(--light-bg);
    padding: 110px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto 0 auto;
    padding-left: 50px;
    border-left: 4px solid #e2e8f0; 
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -61px; 
    top: 35px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-red);
    border: 4px solid var(--light-bg);
    z-index: 5;
    transition: var(--transition);
}

.timeline-item:hover::before {
    background: var(--primary-color);
    transform: scale(1.4);
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 240px; 
    gap: 35px;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    align-items: center;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.timeline-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.timeline-img-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
}

.timeline-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. СЕРТИФИКАТИ */
.badges-strip {
    background: #0f172a;
    padding: 50px 0;
    border-top: 3px solid var(--brand-red);
}

.badges-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-item span {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 5px;
}

.badge-item p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* ==========================================================================
   АДАПТИВНОСТ
   ========================================================================== */
@media (max-width: 992px) {
    .about-text-columns, .values-grid { grid-template-columns: 1fr; }
    .timeline-content { grid-template-columns: 1fr 200px; }
}

@media (max-width: 768px) {
    .inner-hero-slider { min-height: 40vh; padding: 120px 0; }
    .wide-image-section { height: 350px; background-attachment: scroll; }
    .timeline-content { grid-template-columns: 1fr; }
    .timeline-img-wrapper { order: -1; height: 180px; }
    .badges-wrapper { flex-direction: column; gap: 30px; }
    .stat-box span { font-size: 1.4rem; }
}
/* Стил за самия модален прозорец (фона) */
.modal {
    position: fixed;
    z-index: 9999; /* Да е най-отгоре над всичко останало */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Черен фон с лека прозрачност */
    justify-content: center;
    align-items: center;
}

/* Стил за голямата снимка */
.modal-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    object-fit: contain;
}

/* Бутонът за затваряне (Х) */
.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #ff0000; /* Променя цвета на червено при посочване */
}
/* Базов стил за обвивката – променяме курсора на 'ръчичка' */
.timeline-img-wrapper {
    cursor: pointer;
    overflow: hidden; /* Важно за ефекта на уголемяване (zoom) */
    transition: all 0.3s ease; /* Плавен преход за ефектите */
}

/* Стил за снимката вътре – добавяме плавен преход */
.timeline-img-wrapper img {
    transition: transform 0.3s ease;
}

/* Ефект при посочване (:hover) върху обвивката */
.timeline-img-wrapper:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Добавя или усилва сянката */
}

/* Ефект при посочване върху обвивката, който влияе на снимката */
.timeline-img-wrapper:hover img {
    transform: scale(1.05); /* Леко уголемява снимката (zoom effect) */
}