@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/ALS_Sector-Bold.otf') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/ALS_Sector-Regular.otf') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CustomFont';
    src: url('../fonts/ALS_Sector-Stencil.otf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'CustomFont', Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==================== HEADER - ОБЩИЕ СТИЛИ ==================== */
.header {
    background-color: #004EA0;
    padding: 10px 0;
    border-bottom: 5px solid white;
    position: relative;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
}

.nav-item {
    flex: 1;
    text-align: center;
}
.nav-list {
    display: flex;
    justify-content: space-between;
    width: 100%;
    list-style: none;
    flex-direction: row; /* ВАЖНО: горизонтальное расположение */
}
.nav-link {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 5px;
    display: block;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    border-bottom-color: white;
}

/* Иконка гамбургера - скрыта по умолчанию */
.mobile-menu-toggle {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Мобильное меню - скрыто по умолчанию */
.mobile-menu,
.mobile-menu-overlay {
    display: none;
}

/* ==================== MAIN SECTION ==================== */
.main {
    width: 100%;
    position: relative;
    height: auto;
    object-position: center;
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slides, .slide {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 4px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Content Overlay */
.content-overlay {
    position: relative;
    z-index: 2;
    max-width: 100%;
    height: 1000px;
    background: linear-gradient(to bottom, #004EA0 0%, rgba(0, 78, 160, 0) 17%);
    pointer-events: none;
}

.content-overlay > * {
    pointer-events: auto;
}

.university-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.university-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.vertical-line {
    width: 2px;
    height: 110px;
    background: white;
    flex-shrink: 0;
}

.university-icons {
    display: flex;
    gap: 10px;
}

.university-icon {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.university-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.university-info {
    flex: 1;
}

.university-name {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 5px;
    color: white;
}

.faculty-name {
    font-size: 20px;
    line-height: 1.3;
}

.faculty-name span {
    display: block;
    color: white;
}

/* Right Navigation */
.university-right-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.right-nav-link {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-nav-link:hover {
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #D3E9FF;
    border-radius: 8px;
    z-index: 1000;
    margin-top: 5px;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: #002C5B;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #8CC4F3;
}

.dropdown.active .dropdown-content {
    display: block;
}

.nav-icon {
    transition: transform 0.3s ease;
}

.dropdown.active .nav-icon {
    transform: rotate(180deg);
}

/* ==================== NEWS SECTION ==================== */
.news-section {
    background: linear-gradient(180deg, 
        #ffffff 0%,
        #f0f7ff 25%,
        #e1efff 50%,
        #d2e7ff 75%,
        #c3dfff 100%);
    padding: 20px 20px;
    position: relative;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.news-title {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #004EA0 0%, #002C5B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.all-news-btn {
    background: linear-gradient(135deg, #004EA0 0%, #002C5B 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.all-news-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.all-news-btn:hover::before {
    left: 100%;
}

.all-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 78, 160, 0.4);
}

.btn-arrow {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.arrow-line {
    width: 18px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.all-news-btn:hover .arrow-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}

.all-news-btn:hover .arrow-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding-bottom: 100px ;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 44, 91, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.news-date {
    color: white;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    align-self: flex-start;
}

.read-more {
    color: white;
    font-size: 16px;
    font-weight: 600;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.news-card:hover .read-more {
    transform: translateX(0);
    opacity: 1;
}

.news-card-content {
    padding: 30px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #002C5B;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-title {
    color: #004EA0;
}

.news-card-excerpt {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
}
.vertical-line-news {
    width: 1200px;
    height: 2px;
    background: #004EA0;
    flex-shrink: 0;
    
}

/* ==================== DEPARTMENTS SECTION ==================== */
.departments-section {
    background: linear-gradient(180deg,
        #c3dfff 0%,
        #b5d7ff 10%,
        #a7cfff 20%,
        #99c7ff 30%,
        #8bbfff 40%,
        #7db7ff 50%,
        #6fafff 60%,
        #61a7ff 70%,
        #539fff 80%,
        #4597ff 90%,
        #378fff 95%,
        #2987ff 100%);
    padding: 80px 20px;
    position: relative;
    z-index: 2;
    
}

.departments-container {
    max-width: 1200px;
    margin: 0 auto;
}

.departments-title {
    font-size: 42px;
    font-weight: bold;
    color: #004EA0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}
.departments-grid a {
    text-decoration: none;
}
.department-card {
    border-radius: 12px;
    padding: 10px 10px 55px 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important; /* Переопределяем padding */
}
.logo-card img {
    width: 100%;
}
.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.department-year {
    color: white;
    text-align: right;
    padding-right: 30px;
    font-size: 24px;
}

.department-code {
    font-size: 64px;
    font-weight: 400;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.department-name {
    font-size: 22px;
    font-weight: 400;
    color: white;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #002C5B;
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.faculty-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icon {
    width: 100px;
    height: 110px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.faculty-name-footer {
    font-size: 16px;
    line-height: 1.4;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 14px;
    color: #ccc;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #4DA8FF;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #4DA8FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* ==================== MODALS ==================== */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    background: white;
    border: 3px solid white;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: white;
    transform: rotate(90deg);
}

.modal-close span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: #002C5B;
}

.modal-close span:first-child {
    transform: rotate(45deg);
}

.modal-close span:last-child {
    transform: rotate(-45deg);
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    max-height: 90vh;
}

.modal-image {
    position: relative;
    overflow: hidden;
    background: #99c7ff;
    display: flex;
    align-items: center;
    
    justify-content: center;
    
}
.modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('ГЗ прозрачный.png'); /* Путь к фоновой картинке */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}
.modal-image img {
    position: relative;
    z-index: 2; /* Основная картинка поверх фона */
    width: 100%;
    
    object-fit: contain;
    padding: 20px;
    
    border-radius: 35px;
}

.modal-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
}

.modal-content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-content-wrapper::-webkit-scrollbar {
    width: 8px;
}

.modal-content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
    background: #004EA0;
    border-radius: 4px;
}

.modal-content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #003366;
}

.modal-date {
    color: #004EA0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #002C5B;
    margin-bottom: 25px;
    line-height: 1.3;
}

.modal-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.modal-text p {
    margin-bottom: 15px;
}

.modal-text ul, .modal-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-text li {
    margin-bottom: 8px;
}

.scroll-indicator {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 12px;
    opacity: 0.7;
    padding: 10px;
    border-top: 1px solid #eee;
}

.modal-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* All News Modal */
.all-news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.all-news-modal.active {
    display: flex;
}

.all-news-modal .modal-container.large {
    max-width: 1200px;
    max-height: 90vh;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.all-news-header {
    padding: 35px 40px 25px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    background: white;
    z-index: 2;
}

.all-news-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #002C5B;
    margin-bottom: 25px;
}

.news-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
    font-size: 14px;
}

.filter-btn.active,
.filter-btn:hover {
    background: #004EA0;
    border-color: #004EA0;
    color: white;
}

.all-news-grid {
    padding: 30px 40px;
    display: grid;
    gap: 20px;
    overflow-y: auto;
    flex: 1;
}

.all-news-grid::-webkit-scrollbar {
    width: 6px;
}

.all-news-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.all-news-grid::-webkit-scrollbar-thumb {
    background: #004EA0;
    border-radius: 3px;
}

.all-news-grid::-webkit-scrollbar-thumb:hover {
    background: #003366;
}

.all-news-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 5px solid #004EA0;
}

.all-news-item:hover {
    background: white;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.all-news-item h3 {
    color: #002C5B;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.all-news-item .news-date {
    color: #004EA0;
    font-size: 14px;
    background: none;
    padding: 0;
    margin-bottom: 8px;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

/* ==================== МОБИЛЬНЫЕ УСТРОЙСТВА (≤768px) ==================== */
@media (max-width: 768px) {
    /* ==================== HEADER ==================== */
    .header {
    border-bottom: none;
    }
    /* Показываем кнопку меню */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
    }
    
    /* Анимация иконки при открытии */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Скрываем основное меню на мобильных */
    .nav-menu {
        display: none;
    }
    /* Гамбургер иконка */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hamburger-line {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    /* Анимация при открытии - линии исчезают */
    .mobile-menu-toggle.active .hamburger-line {
        opacity: 0;
        transform: scale(0.5);
    }
    
    /* Анимация при закрытии - линии появляются */
    .mobile-menu-toggle:not(.active) .hamburger-line {
        opacity: 1;
        transform: scale(1);
        transition: all 0.3s ease 0.2s;
    }
    
    /* Первая линия */
    .mobile-menu-toggle:not(.active) .hamburger-line:nth-child(1) {
        transform: translateY(0) rotate(0);
    }
    
    /* Вторая линия */
    .mobile-menu-toggle:not(.active) .hamburger-line:nth-child(2) {
        opacity: 1;
    }
    
    /* Третья линия */
    .mobile-menu-toggle:not(.active) .hamburger-line:nth-child(3) {
        transform: translateY(0) rotate(0);
    }

    /* Оверлей для мобильного меню */
    .mobile-menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Само мобильное меню */
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100%;
        background: white;
        z-index: 1000;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
        flex-direction: column;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    /* Кнопка закрытия меню */
    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #004EA0;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
        z-index: 1002;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        background: #003366;
        transform: rotate(90deg);
    }
    
    /* Шапка мобильного меню */
    .mobile-menu-header {
        padding: 30px 20px 20px;
        background: linear-gradient(135deg, #004EA0 0%, #002C5B 100%);
        color: white;
        border-bottom: 5px solid white;
    }
    
    .mobile-logo {
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .mobile-logo img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        
        padding: 5px;
        border-radius: 8px;
    }
    
    .mobile-university-info {
        padding-left: 5px;
    }
    
    .mobile-university-name {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 5px;
    }
    
    .mobile-faculty-name {
        font-size: 14px;
        line-height: 1.3;
        opacity: 0.9;
    }
    
    /* Навигация в мобильном меню */
    .mobile-nav-list {
        list-style: none;
        padding: 20px 0;
        margin: 0;
        flex: 1;
    }
    
    .mobile-nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 25px;
        color: #002C5B;
        text-decoration: none;
        font-size: 17px;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        background: #f5f9ff;
        color: #004EA0;
        padding-left: 30px;
    }
    
    /* Разделитель */
    .mobile-nav-divider {
        height: 1px;
        background: #e0e0e0;
        margin: 15px 25px;
    }
    
    /* Подменю для мобильных */
    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        background: #f8fafc;
        transition: max-height 0.4s ease;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-submenu.active {
        max-height: 300px;
    }
    
    .mobile-submenu li {
        border-bottom: 1px solid #e8e8e8;
    }
    
    .mobile-submenu li:last-child {
        border-bottom: none;
    }
    
    .mobile-submenu a {
        display: block;
        padding: 14px 25px 14px 40px;
        color: #555;
        text-decoration: none;
        font-size: 15px;
        transition: all 0.3s ease;
    }
    
    .mobile-submenu a:hover {
        background: #e3f0ff;
        color: #004EA0;
        padding-left: 45px;
    }
    
    /* Контакты и соцсети в мобильном меню */
    .mobile-contacts,
    .mobile-social {
        padding: 20px 25px;
    }
    
    .mobile-contacts h3,
    .mobile-social h3 {
        font-size: 16px;
        color: #002C5B;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    .mobile-contacts .contact-item {
        margin-bottom: 12px;
    }
    
    .mobile-contacts .contact-label {
        display: block;
        font-size: 12px;
        color: #777;
        margin-bottom: 3px;
    }
    
    .mobile-contacts .contact-link {
        color: #004EA0;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }
    
    .mobile-social .social-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .mobile-social .social-link {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #004EA0;
        text-decoration: none;
        font-size: 15px;
        padding: 8px 0;
    }
    
    /* ==================== MAIN SECTION ==================== */
    
    /* Скрываем правую навигацию */
    .university-right-nav {
        display: none;
    }
    
    /* Адаптируем заголовок университета */
    .university-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vertical-line {
        display: none;
    }
    
    .university-icons {
        width: 100%;
        justify-content: center;
    }
    
    .university-info {
        text-align: center;
        width: 100%;
    }
    
    /* Уменьшаем высоту header */
    .header {
        padding: 15px 0;
    }
    
    /* Адаптируем основной контент */
    .content-overlay {
        height: 700px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    /* ==================== NEWS SECTION ==================== */
    .news-title {
        font-size: 32px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .all-news-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    /* ==================== DEPARTMENTS SECTION ==================== */
    .departments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .department-card {
        height: 200px;
        padding: 15px 15px 45px 15px;
    }
    
    .department-code {
        font-size: 48px;
    }
    
    .department-name {
        font-size: 18px;
    }
    
    /* ==================== FOOTER ==================== */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .faculty-info {
        align-items: center;
    }
    
    .footer-icons {
        justify-content: center;
    }
}

/* ==================== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (≤480px) ==================== */
@media (max-width: 480px) {
    .university-name,
    .faculty-name span {
        font-size: 16px;
    }
    
    .content-overlay {
        height: 600px;
    }
    
    .news-title {
        font-size: 28px;
    }
    
    .departments-title {
        font-size: 32px;
    }
    
    .department-card {
        height: 180px;
    }
    
    .mobile-menu {
        width: 90%;
    }
}
