.header-main {
    background: white;
    border-bottom: 2px solid #0056b3;
    padding: 15px 0;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    padding: 0 50px;
    min-height: 120px;
    gap: 0px; 
}

/* лого ЮУрГУ */
.header-left {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    gap: 0px;
    padding-right: 50px;
    border: none;
    min-width: 0; 
}

/* Логотип ЮУрГУ */
.susu-logo {
    flex-shrink: 0;
    flex-basis:40%;
}

.susu-logo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.susu-logo:hover img {
    transform: scale(1.05);
}


.susu-description {
    flex: 1; 
    align-items: left;
    min-width: 250px; 
}

.susu-text-top {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0056b3;
    line-height: 1.2;
    text-align: left;
}

.susu-text-bottom {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.3;
    text-align: left;
}


.header-center {
    flex: 1; 
    text-align: center;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: none;
    min-width: 300px; 
}

.department-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #003366;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.department-subtitle {
    margin: 10px 0 0;
    font-size: 18px;
    color: #0056b3;
    font-weight: 600;
}

/* Правая часть - логотип кафедры */
.header-right {
    flex: 0 0 400px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 30px;
    height: 140px;
}

.department-logo {
    display: block;
}

.department-logo img {
    width: 90px;
    height: auto;
    display: block;
    transition: transform 0.3s;
}
.department-logo:hover img{
    transform: scale(1.05);
}

.header-navigation {
    background: #f8f9fa;
    border-top: 1px solid #eaeaea;
}


@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        flex: none;
        padding: 0;
        border: none;
        border-bottom: 2px solid #eaeaea;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 15px;
    }
    
    .susu-description {
        text-align: center;
        margin-top: 10px;
    }
    
    .susu-logo {
        width: 150px;
    }
    
    .department-logo img {
        margin: 0 auto;
    }
    
    .department-title {
        font-size: 22px;
    }
    
    .header-right:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    
   
    .header-left{
        display: none;
    }
    .header-right{
        display: none;
    }
    .header-center {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .header-left{
        display: none;
    }
    .header-center{
        min-width: auto;
    }
    .header-right{
        display: none;
    }
}