

/* Start:/local/templates/dongu/css/landing.css?177502843442166*/
/* ЛЕНДИНГ СТИЛИ С ВЫСОКИМ ПРИОРИТЕТОМ */

/* Reset для лендинг секций */
.landing-page .landing-header,
.landing-page .landing-news-section,
.landing-page .landing-features-grid,
.landing-page .quick-services,
.landing-page .gov-resources {
    all: unset !important;
}

/* Запрещаем горизонтальный скролл на главной странице */
.landing-page {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Убираем лишний отступ на странице ректора */
.content-wrapper:has(> .rector-page-content) {
    margin-top: 0 !important;
}

/* --- Большие мониторы --- */
@media (min-width: 1500px) {

    .landing-page .slider-container {
        max-width: 1440px !important;
        width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .faculties-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        gap: 2rem !important;
    }

    .faculty-card {
        /*min-height: 420px !important;*/
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        padding: 2rem 1rem !important;
        border-radius: 1rem !important;
        border: 2px solid #e0e0e0 !important;
        background: #fff !important;
        transition: box-shadow 0.3s;
    }

    .faculty-card:hover {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10) !important;
        border-color: #0052a5 !important;
    }

    .faculty-card img {
        max-width: 220px !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 1rem !important;
    }

    .faculty-card h3 {
        text-align: center !important;
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
    }
}

@media (min-width: 1900px) {

    .landing-page .slider-container {
        max-width: 1440px !important;
        width: 1440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Hero секция */
/* Hero секция - уменьшенная высота */
.landing-header {
    /* background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/local/templates/dongu/images/university-bg.jpg') !important;*/
    background-size: cover !important;
    background-position: center !important;
    min-height: 50vh !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Уменьшаем размер заголовков в hero секции */
.landing-header h1 {
    font-size: 2.5rem !important;
    /* Уменьшено с 3.5rem */
    margin-bottom: 1rem !important;
}

.landing-header .lead {
    font-size: 1.25rem !important;
    /* Уменьшено с 1.5rem */
    margin-bottom: 0 !important;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .landing-header {
        min-height: 40vh !important;
        /* Еще меньше на мобильных */
    }

    .landing-header h1 {
        font-size: 2rem !important;
    }

    .landing-header .lead {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 576px) {
    .landing-header {
        min-height: 35vh !important;
    }

    .landing-header h1 {
        font-size: 1.75rem !important;
    }

    .landing-header .lead {
        font-size: 1rem !important;
    }
}

.landing-header .container {
    max-width: 100% !important;
    width: 100% !important;
}

/* Базовые стили секций */
.landing-features-grid,
.quick-services,
.gov-resources {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 3rem 0 !important;
}

.landing-features-grid {
    background-color: #f8f9fa !important;
}

.quick-services {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%) !important;
}

.gov-resources {
    background-color: #f8f9fa !important;
}

/* Стили карточек */
.landing-features-grid .feature-card {
    background: #ffffff !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    text-align: center !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.quick-services .service-item {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
}

/* Иконки */
.landing-features-grid .feature-icon {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 1.5rem auto !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.feature-card-education .feature-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    color: #1976d2 !important;
}

.feature-card-science .feature-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
    color: #7b1fa2 !important;
}

.feature-card-international .feature-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%) !important;
    color: #388e3c !important;
}

.quick-services .service-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
}

/* Анимации карточек */
.landing-features-grid .feature-card:hover {
    transform: translateY(-0.5rem) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.quick-services .service-item:hover {
    transform: translateY(-0.375rem) !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

/* Кнопки */
.landing-features-grid .btn {
    transition: all 0.3s ease !important;
    margin-top: auto !important;
}

.landing-features-grid .btn:hover {
    transform: scale(1.05) !important;
}

/* Заголовки */
.landing-news-section h2,
.landing-features-grid h2,
.quick-services h2,
.gov-resources h2 {
    color: #0052a5 !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.landing-features-grid .feature-card h2 {
    color: #0052a5 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

.quick-services .service-item h3 {
    color: #0052a5 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Дополнительные анимации */
.view-all-link {
    transition: all 0.3s ease !important;
}

.view-all-link:hover {
    transform: translateX(5px) !important;
}

.gov-resources a {
    transition: all 0.3s ease !important;
}

.gov-resources a:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Z-index для hover эффектов */
.landing-features-grid .feature-card,
.quick-services .service-item {
    position: relative !important;
    z-index: 1 !important;
}

.landing-features-grid .feature-card:hover,
.quick-services .service-item:hover {
    z-index: 2 !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {

    /* Hero секция */
    .landing-header h1 {
        font-size: 2rem !important;
    }

    .landing-header .lead {
        font-size: 1.1rem !important;
    }

    /* Основные направления - вертикально */
    .landing-features-grid .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin: 0 !important;
    }

    .landing-features-grid .col-md-4 {
        width: 100% !important;
        margin-bottom: 1rem !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .landing-features-grid .feature-card {
        margin-bottom: 1.5rem !important;
        padding: 1.5rem !important;
    }

    /* Популярные ссылки - вертикально */
    .quick-services .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin: 0 !important;
    }

    .quick-services .col-lg-3,
    .quick-services .col-md-6 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .quick-services .service-item {
        padding: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    /* Заголовки */
    .landing-features-grid h2,
    .quick-services h2,
    .gov-resources h2 {
        font-size: 1.75rem !important;
        text-align: center !important;
    }


    /* Отступы секций */
    .landing-news-section,
    .landing-features-grid,
    .quick-services,
    .gov-resources {
        padding: 2rem 0 !important;
    }

    /* Иконки */
    .landing-features-grid .feature-icon {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem !important;
    }

    .quick-services .service-icon {
        font-size: 2.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    /* Текст */
    .landing-features-grid .feature-card h2 {
        font-size: 1.5rem !important;
    }

    .quick-services .service-item h3 {
        font-size: 1.1rem !important;
    }

    /* Контейнеры */
    .landing-features-grid .container,
    .quick-services .container,
    .gov-resources .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Маленькие экраны */
@media (max-width: 576px) {
    .landing-header h1 {
        font-size: 1.75rem !important;
    }

    .landing-header .lead {
        font-size: 1rem !important;
    }

    .landing-features-grid .feature-card,
    .quick-services .service-item {
        padding: 1.25rem !important;
    }

    .landing-features-grid h2,
    .quick-services h2,
    .gov-resources h2 {
        font-size: 1.5rem !important;
    }

    .landing-features-grid .feature-card h2 {
        font-size: 1.3rem !important;
    }

    .quick-services .service-item h3 {
        font-size: 1rem !important;
    }
}

/* Стили для кнопки "Смотреть все" */
.btn-outline-primary {
    border: 2px solid #0052a5 !important;
    color: #0052a5 !important;
    background: transparent !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-primary:hover {
    background: #0052a5 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.3) !important;
}

.btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1.1rem !important;
    border-radius: 0.5rem !important;
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .btn-lg {
        padding: 0.6rem 1.2rem !important;
        font-size: 1rem !important;
    }

    .landing-news-section .row.align-items-center {
        gap: 1rem !important;
    }

    .landing-news-section .col-auto {
        width: auto !important;
    }

    .btn-outline-primary {
        width: auto !important;
        display: inline-block !important;
    }
}

/* Образовательные программы на факультете (Аккордеон) */
.faculty-edu-section {
    margin: 3rem 0;
    background: #fff;
}

.faculty-edu-section h2 {
    color: #0052a5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #ffd700;
    padding-bottom: .5rem;
}

.faculty-edu-accordion {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faculty-edu-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    list-style: none;
    background: #f6f8fa;
    transition: background-color 0.2s ease;
}

.faculty-edu-accordion summary::-webkit-details-marker {
    display: none;
}

.faculty-edu-accordion summary:hover {
    background: #eef3f8;
}

.faculty-edu-accordion summary h2 {
    color: #0052a5;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    border-bottom: none;
    padding: 0;
    text-align: left;
}

.faculty-edu-accordion .accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faculty-edu-accordion .accordion-icon::before,
.faculty-edu-accordion .accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #0052a5;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, background-color 0.2s, opacity 0.3s;
}

.faculty-edu-accordion .accordion-icon::before {
    width: 16px;
    height: 2px;
    border-radius: 2px;
}

.faculty-edu-accordion .accordion-icon::after {
    width: 2px;
    height: 16px;
    border-radius: 2px;
}

.faculty-edu-accordion[open] .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faculty-edu-accordion[open] summary h2 {
    color: #bf1126;
}

.faculty-edu-accordion[open] .accordion-icon::before {
    background-color: #bf1126;
}

.faculty-edu-accordion .edu-programs-list {
    padding: 1.5rem 2rem;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.edu-programs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edu-program-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #f6f8fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.edu-program-card:hover {
    border-color: #0052a5;
    background: #eef3f8;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 82, 165, 0.1);
    text-decoration: none;
    color: #333;
}

.edu-program-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #0052a5;
}

.edu-program-level {
    font-size: 0.82rem;
    color: #888;
    white-space: nowrap;
    margin-left: 12px;
}

@media (max-width: 768px) {
    .edu-program-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .edu-program-level {
        margin-left: 0;
    }
}

.faculties-section {
    margin: 3rem 0;
    padding: 2rem 0;
    background: #f8f9fa;
}

.faculties-section h2 {
    color: #0052a5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 3px solid #ffd700;
    padding-bottom: .5rem;
}

.faculties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.faculty-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
}

.faculty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #0052a5;
}

/* Единый блок стилей для эмблемы в карточке факультета */
.faculty-card img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: 160px;
    display: block;
    margin: 0;
    object-fit: contain;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    padding: 1.5rem;
}

.faculty-card h3 {
    color: #0052a5;
    font-size: 1.05rem;
    margin: 0;
    padding: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
    line-height: 1.35;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
}

.faculty-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.faculty-card a:hover h3 {
    color: #bf1126;
}


/* ===== СЕКЦИЯ НОВОСТЕЙ (БЕЗ ПЕРЕМЕННЫХ) ===== */

.landing-news-section {
    background: #f8f9fa;
    padding: 3rem 0 1rem 0;
}

.landing-news-section .row.align-items-center {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 2rem !important;
}

.landing-news-section .col {
    flex: 1 !important;
}

.landing-news-section .col-auto {
    flex: 0 auto !important;
}

.landing-news-section h2 {
    color: #0052a5 !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.view-all-news-link {
    color: #0052a5 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    display: inline-block !important;
    border: 2px solid #0052a5 !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.view-all-news-link:hover {
    background: #0052a5 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.3) !important;
}

.news-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
    overflow-x: auto !important;
    padding-bottom: 2rem !important;
}

.news-container::-webkit-scrollbar {
    height: 8px !important;
}

.news-container::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 4px !important;
}

.news-container::-webkit-scrollbar-thumb {
    background: #0052a5 !important;
    border-radius: 4px !important;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: #003d7a !important;
}

.news-card {
    background: #ffffff !important;
    border-radius: 1.1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    min-width: 280px !important;
    max-width: 280px !important;
    flex: 0 0 280px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    text-decoration: none !important;
    overflow: hidden !important;
    border: 1px solid #e0e0e0 !important;
}

.news-card:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    z-index: 2 !important;
}

.news-card .news-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    border-radius: 1.1rem 1.1rem 0 0 !important;
    display: block !important;
    margin: 0 !important;
}

.news-card .news-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    padding: 2rem !important;
    flex-grow: 1 !important;
}

.news-card .news-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    color: #0052a5 !important;
    margin: 0 !important;
    height: 6.5em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 5 !important;
    line-clamp: 5 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.news-card .news-description {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    color: #333333 !important;
    margin: 0 !important;
    max-height: 20em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 8 !important;
    line-clamp: 8 !important;
    -webkit-box-orient: vertical !important;
}

.news-card .news-date {
    font-size: 0.85rem !important;
    color: #999999 !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

@media (max-width: 1024px) {
    .news-card {
        min-width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
    }
}

@media (max-width: 768px) {
    .landing-news-section {
        padding: 2rem 0 !important;
    }

    .landing-news-section h2 {
        font-size: 1.75rem !important;
        text-align: center !important;
    }

    .landing-news-section .row.align-items-center {
        flex-direction: column !important;
        text-align: center !important;
    }

    .landing-news-section .col-auto {
        width: 100% !important;
    }

    .view-all-link {
        width: 100% !important;
        text-align: center !important;
    }

    .news-container {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 1rem !important;
    }

    .news-card:nth-child(n+4) {
        display: none !important;
    }

    .news-card {
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 100% !important;
    }

    .news-card .news-content {
        padding: 1.25rem !important;
        gap: 0.5rem !important;
    }

    .news-card .news-image {
        height: 180px !important;
    }

    .news-card .news-title {
        font-size: 1rem !important;
    }

    .news-card .news-description {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 576px) {
    .landing-news-section h2 {
        font-size: 1.5rem !important;
    }

    .news-card .news-content {
        padding: 1rem !important;
    }

    .news-card .news-image {
        height: 150px !important;
    }

    .news-card .news-title {
        font-size: 0.95rem !important;
    }

    .news-card .news-description {
        font-size: 0.9rem !important;
    }
}

/* Контейнер новостей с позиционированием */
.news-wrapper {
    position: relative !important;
}

/* Кнопки навигации слева/справа */
.news-nav-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border: none !important;
    background: rgba(5, 82, 165, 0.7) !important;
    color: #ffffff !important;
    /*font-size: 24px !important;*/
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    z-index: 10 !important;

    /* top: calc(50%) !important;*/
    font-size: 28px !important;
    line-height: 1 !important;
    padding: 0 !important;

}

.news-nav-button:hover {
    background: rgba(5, 82, 165, 0.95) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.news-nav-left {
    left: 10px !important;
}

.news-nav-right {
    right: 10px !important;
}

.news-wrapper:hover .news-nav-button {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .news-nav-button {
        display: none !important;
    }
}

/* Планшеты в landscape (768-1024px): 2 карточки новостей в ряд */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: landscape) {
    .news-container {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 1rem !important;
    }

    .news-card {
        min-width: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        flex: 0 0 calc(50% - 0.5rem) !important;
    }

    .news-nav-button {
        display: none !important;
    }
}

/* ===== КАРТОЧКА РЕКТОРА ===== */

.landing-rector-section {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 3rem 0 !important;
    background-color: #f8f9fa !important;
}

.landing-rector-section .container {
    max-width: 100% !important;
}

.rector-card {
    background: #ffffff !important;
    border-radius: 1rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}

.rector-card:hover {
    transform: translateY(-0.5rem) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rector-card-link {
    display: flex !important;
    flex-direction: row !important;
    text-decoration: none !important;
    color: inherit !important;
    width: 100% !important;
    align-items: stretch !important;
}

/* Левая часть - изображение (автоматическая ширина) */
.rector-card-image {
    flex-shrink: 0 !important;
    width: auto !important;
    min-width: 300px !important;
    max-width: 350px !important;
    height: auto !important;
    min-height: 350px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
}

.rector-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Правая часть - информация (гибкая ширина) */
.rector-card-content {
    flex: 1 !important;
    padding: 2.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1rem !important;
}

.rector-name {
    color: #0052a5 !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.rector-title {
    /*color: #888888 !important;*/
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.rector-contact {
    margin: 0 !important;
    padding: 0 !important;
}

.contact-link {
    color: #0052a5 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.contact-link:hover {
    text-decoration: underline !important;
    color: #003d7a !important;
}

.rector-description {
    color: #666666 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin: 0.5rem 0 0 0 !important;
}

.rector-link-text {
    display: inline-block !important;
    color: #0052a5 !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.rector-card:hover .rector-link-text {
    transform: translateX(5px) !important;
}

/* Планшетная адаптация */
@media (max-width: 992px) {
    .rector-card {
        flex-direction: column !important;
    }

    .rector-card-link {
        flex-direction: column !important;
    }

    .rector-card-image {
        flex-shrink: 1 !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
    }

    .rector-card-content {
        padding: 2rem !important;
        gap: 0.75rem !important;
    }

    .rector-name {
        font-size: 1.5rem !important;
    }

    .rector-title {
        font-size: 0.95rem !important;
    }

    .rector-description {
        font-size: 0.95rem !important;
    }
}

/* Мобильная адаптация (средние экраны) */
@media (max-width: 768px) {
    .landing-rector-section {
        padding: 2rem 0 !important;
    }

    .rector-card {
        flex-direction: column !important;
    }

    .rector-card-link {
        flex-direction: column !important;
    }

    .rector-card-image {
        width: 100% !important;
        min-height: 250px !important;
    }

    .rector-card-content {
        padding: 2rem 1.5rem !important;
        gap: 0.5rem !important;
    }

    .rector-name {
        font-size: 1.4rem !important;
    }

    .rector-title {
        font-size: 0.9rem !important;
    }

    .rector-description {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
}

/* Мобильная адаптация (маленькие экраны) */
@media (max-width: 576px) {
    .rector-card {
        flex-direction: column !important;
    }

    .rector-card-link {
        flex-direction: column !important;
    }

    .rector-card-image {
        width: 100% !important;
        min-height: 200px !important;
    }

    .rector-card-content {
        padding: 1.5rem !important;
    }

    .rector-name {
        font-size: 1.25rem !important;
    }

    .rector-title {
        font-size: 0.85rem !important;
    }

    .rector-description {
        font-size: 0.85rem !important;
    }

    .rector-link-text {
        font-size: 0.95rem !important;
    }
}

/* ===== Ландшафтная ориентация смартфонов (маленькие экраны горизонтально) ===== */
/* Покрывает смартфоны до 1024px — не планшеты (они обрабатываются выше) */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {

    /* Карточки новостей — 2 в ряд, без горизонтального выхода */
    .news-container {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        gap: 1rem !important;
    }

    .news-card {
        min-width: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        flex: 0 0 calc(50% - 0.5rem) !important;
    }

    /* Кнопки навигации — скрыть */
    .news-nav-button {
        display: none !important;
    }

    /* Заголовки — компактнее */
    .landing-news-section h2,
    .landing-features-grid h2,
    .quick-services h2,
    .gov-resources h2 {
        font-size: 1.5rem !important;
    }

    /* Секции — меньше padding */
    .landing-news-section,
    .landing-features-grid,
    .quick-services,
    .gov-resources {
        padding: 1.5rem 0 !important;
    }

    /* Сетка факультетов */
    .faculties-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    }

    /* Карточка ректора — горизонтальная */
    .rector-card {
        flex-direction: row !important;
    }

    .rector-card-image {
        min-width: 200px !important;
        max-width: 220px !important;
        min-height: auto !important;
    }

    .rector-card-content {
        padding: 1.25rem !important;
    }

    .rector-name {
        font-size: 1.1rem !important;
    }

    .rector-description {
        font-size: 0.85rem !important;
    }
}

/* ===== СЕКЦИЯ ВЫСТУПЛЕНИЙ И ДОКЛАДОВ РЕКТОРА ===== */

.rector-posts-section {
    padding: 3rem 0;
    background: #fff;
}

.rector-posts-section h2 {
    color: #0052a5;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border-bottom: 3px solid #ffd700;
    padding-bottom: .5rem;
}

.rector-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rector-post-card {
    display: flex;
    flex-direction: column;
    background: #f8f9fb;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.rector-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 82, 165, 0.15);
    border-color: #0052a5;
    text-decoration: none;
    color: #333;
}

.rector-post-card__image {
    height: 180px;
    overflow: hidden;
    background: #e8ecf0;
}

.rector-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rector-post-card:hover .rector-post-card__image img {
    transform: scale(1.05);
}

.rector-post-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rector-post-card__date {
    font-size: 0.82rem;
    color: #888;
    font-weight: 500;
}

.rector-post-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #0052a5;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rector-post-card__excerpt {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Страница поста ректора */
.rector-post-header {
    margin-bottom: 2rem;
}

.rector-post-meta {
    color: #888;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.btn-back-to-list {
    display: inline-block;
    color: #0052a5;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #0052a5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-back-to-list:hover {
    background: #0052a5;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .rector-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rector-posts-section h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .rector-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rector-post-card__image {
        height: 150px;
    }
}

/* Переопределение стилей заголовка аккордеона Подразделений (как у Факультетов) */
#departments summary {
    position: relative;
    justify-content: center;
}

#departments summary h2 {
    color: #0052a5 !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    border-bottom: 3px solid #ffd700 !important;
    padding-bottom: .5rem !important;
    margin: 0 !important;
    width: 100%;
}

#departments summary .accordion-icon {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    #departments summary h2 {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 576px) {
    #departments summary h2 {
        font-size: 1.5rem !important;
    }
    #departments summary .accordion-icon {
        right: 1rem;
    }
}

/* =========================================================================
   University Staff Design System (.u-staff-card, .u-avatar)
   Унифицированные карточки сотрудников (преподаватели, руководство)
   ========================================================================= */

.u-staff-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    height: 100%;
}

a.u-staff-card:hover {
    border-color: #3a6ea5;
    box-shadow: 0 4px 16px rgba(58, 110, 165, 0.12);
    text-decoration: none;
    color: inherit;
}

/* Система аватаров: фиксированная пропорция 3:4, object-fit: contain */
.u-avatar {
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    /* Задаем жесткую пропорцию 3:4 */
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Модификаторы размеров по ширине (ширина управляет высотой через aspect-ratio) */
.u-avatar--lg {
    flex-basis: 150px;
    max-width: 150px;
}

.u-avatar--md {
    flex-basis: 120px;
    max-width: 120px;
}

.u-avatar--sm {
    flex-basis: 72px;
    max-width: 72px;
}

.u-avatar img {
    width: 100%;
    height: 100%;
    /* Изображение заполняет площадь контейнера, обрезаясь по фокусной точке */
    object-fit: cover;
    object-position: center top; 
    display: block;
}

/* Плейсхолдер для сотрудников без фото */
.u-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf0 0%, #cfdbec 100%);
    color: #0052a5;
    font-weight: 700;
    text-transform: uppercase;
}
.u-avatar--lg .u-avatar-placeholder { font-size: 4rem; }
.u-avatar--md .u-avatar-placeholder { font-size: 3rem; }
.u-avatar--sm .u-avatar-placeholder { font-size: 1.8rem; }

/* Информационный блок внутри карточки */
.u-staff-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    justify-content: center;
}

.u-staff-card__label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.u-staff-card__name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}
a.u-staff-card:hover .u-staff-card__name {
    color: #0052a5;
}
.u-staff-card__name a {
    color: inherit;
    text-decoration: none;
}
.u-staff-card__name a:hover {
    color: #0052a5;
}

.u-staff-card__desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-top: 2px;
}

/* Контакты внутри карточки */
.u-staff-card__contacts {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.u-staff-card__contact-item {
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}
.u-staff-card__contact-icon {
    opacity: 0.7;
    font-size: 1rem;
}

/* Адаптивность системы */
@media (max-width: 768px) {
    .u-staff-card {
        padding: 16px;
        gap: 12px;
    }
    
    .u-avatar--lg {
        flex-basis: 120px;
        max-width: 120px;
    }

    .u-avatar--md {
        flex-basis: 90px;
        max-width: 90px;
    }
    
    .u-avatar--sm {
        flex-basis: 56px;
        max-width: 56px;
    }
}

/* =========================================================================
   Department Staff Grid (.dept-staff-container)
   Сетка преподавателей кафедры (старый внешний вид)
   ========================================================================= */

.dept-staff-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}
.dept-staff-container h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #333;
}
.dept-staff-count {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.dept-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.staff-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.staff-card:hover {
    border-color: #3a6ea5;
    box-shadow: 0 4px 16px rgba(58, 110, 165, 0.12);
}
.staff-card-photo {
    flex: 0 0 72px;
    width: 72px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    /* Умное кадрирование в старой карточке */
    display: flex;
    align-items: center;
    justify-content: center;
}
.staff-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.staff-card-no-photo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8ecf0 0%, #cfdbec 100%);
    color: #0052a5;
    font-size: 1.6rem;
    font-weight: 600;
}
.staff-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    justify-content: center;
}
.staff-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
}
.staff-card:hover .staff-card-name {
    color: #3a6ea5;
}
.staff-card-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .dept-staff-grid {
        grid-template-columns: 1fr;
    }
    .staff-card-photo {
        flex: 0 0 56px;
        width: 56px;
        height: 75px;
    }
}
/* End */


/* Start:/local/templates/dongu/components/bitrix/menu/donnu_main_menu/style.css?178012083221419*/
/* ===================================
   МЕНЮ ДОНЕЦКОГО ГОСУДАРСТВЕННОГО УНИВЕРСИТЕТА
   =================================== */

/* === КОНТЕЙНЕР МЕНЮ === */
.menu-container {
    position: relative;
    background: #ffffff;
    border-bottom: 3px solid #0052a5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;

    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;

}

/* === ЛОГОТИП И НАЗВАНИЕ === */
.menu-branding-header {
    display: flex;
    align-items: center;
    /*z-index: 100;*/
    margin-right: 30px;
    /* ОБЯЗАТЕЛЬНЫЙ ОТСТУП от меню */
}

.menu-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.menu-logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.menu-university-name {
    color: #191919;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

/* === ДЕСКТОП === */
@media (min-width: 769px) {
    .menu-container {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Меню справа с отступом */
    .donnu-main-menu {
        margin-left: auto;
        width: 100%;
    }

    .menu-level-1 {
        display: flex;
        flex-wrap: wrap;
        /* РАЗРЕШАЕМ ПЕРЕНОС */
        gap: 0;
        /* Убираем лишние отступы между строками, если нужно */
        align-items: stretch;
        width: 100%;
        padding: 0;
    }

    /* Бургер скрыт */
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* === ПЛАНШЕТЫ (средние экраны) === */
@media (min-width: 769px) and (max-width: 1200px) {
    .menu-branding-header {
        margin-right: 20px;
    }

    .menu-logo {
        height: 50px;
    }

    .menu-university-name {
        font-size: 14px;
    }

    .menu-link.level-1 {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* === МОБИЛЬНЫЕ === */
@media (max-width: 768px) {
    .desktop-br {
        display: none;
    }

    .menu-container {
        flex-wrap: wrap;
        padding: 10px 15px;
        min-height: 70px;
    }

    /* Логотип слева, бургер справа */
    .menu-branding-header {
        flex: 1;
        order: 1;
        margin-right: 15px;
    }

    .mobile-menu-toggle {
        order: 2;
        position: static;
        display: block !important;
    }

    /* Меню под логотипом и бургером */
    .donnu-main-menu {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    /* Адаптивный логотип и название */
    .menu-logo {
        height: 60px;
    }

    .menu-university-name {
        font-size: 18px;
        font-weight: 700;
        text-transform: uppercase;
        color: #191919;
        line-height: 1.2;
    }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ === */
@media (max-width: 480px) {
    .menu-logo {
        height: 40px;
    }

    .menu-university-name {
        font-size: 12px;
        max-width: 180px;
        line-height: 1.1;
    }
}

/* === ОСНОВНОЕ МЕНЮ === */
.donnu-main-menu {
    background: transparent;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
    position: relative;
    /*z-index: 1000;*/
}

/* === СПИСОК ПЕРВОГО УРОВНЯ === */
.menu-level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

/* === ПУНКТЫ МЕНЮ ПЕРВОГО УРОВНЯ === */
.menu-level-1>.menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

/* === ССЫЛКИ ПЕРВОГО УРОВНЯ === */
.menu-link.level-1 {
    display: block;
    padding: 15px 20px;
    color: #0052a5;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* === ОБЕРТКА ССЫЛКИ И СТРЕЛКИ === */
.menu-link-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* === КНОПКИ-СТРЕЛКИ ДЛЯ ВЫПАДАЮЩЕГО МЕНЮ === */
.menu-arrow-btn, .submenu-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0 4px;
    height: 100%;
    min-height: 40px;
    cursor: pointer;
    color: #0052a5;
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    outline: none;
    font-size: 10px;
    flex-shrink: 0;
}

.menu-arrow-btn:hover, .submenu-arrow-btn:hover {
    background-color: rgba(0, 82, 165, 0.05);
    color: #FFD700;
}

.menu-arrow-btn.active, .submenu-arrow-btn.active {
    transform: rotate(180deg);
}

/* === АКТИВНЫЙ ПУНКТ === */
.menu-level-1>.menu-item.active>.menu-link.level-1 {
    background-color: rgba(0, 82, 165, 0.1);
    border-bottom: 3px solid #FFD700;
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ (ПОДМЕНЮ) === */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 999;
}

/* === ПУНКТЫ ПОДМЕНЮ === */
.submenu .menu-item {
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.submenu .menu-item:last-child {
    border-bottom: none;
}

/* === ССЫЛКИ В ПОДМЕНЮ === */
.submenu .menu-link {
    display: block;
    padding: 12px 20px;
    color: #0052a5;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* === СТРЕЛКА ДЛЯ ВЛОЖЕННОГО ПОДМЕНЮ === */
.submenu-arrow, .submenu-arrow-btn {
    font-size: 12px;
}

/* === ВЛОЖЕННЫЕ ПОДМЕНЮ (2+ УРОВНИ) === */
.submenu .submenu {
    top: 0;
    left: 100%;
    border-left: 3px solid #e0e0e0;
}

/* === ОТКРЫТИЕ ПОДМЕНЮ ВЛЕВО ПРИ НЕХВАТКЕ МЕСТА НА ЭКРАНЕ === */
.submenu .submenu.submenu-left {
    left: auto !important;
    right: 100% !important;
    border-left: none !important;
    border-right: 3px solid #e0e0e0 !important;
}

/* === АКТИВНЫЙ ПУНКТ В ПОДМЕНЮ === */
.submenu .menu-item.active>.menu-link {
    background-color: rgba(0, 82, 165, 0.1);
    font-weight: 600;
}

/* === АКТИВНОЕ ПОДМЕНЮ - ПОКАЗ === */
.submenu.active {
    display: block !important;
}

/* === КНОПКА БУРГЕР === */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #0052a5;
    border-radius: 5px;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 99999;
    width: 45px;
    height: 45px;
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    width: 28px;
    height: 3px;
    background-color: #0052a5;
    border-radius: 2px;
    margin-left: -14px;
    /* Центрируем: -width/2 */
    transition: all 0.3s ease;
}

/* Позиции полос в закрытом состоянии */
.mobile-menu-toggle span:nth-child(1) {
    top: 12px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 21px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 30px;
}

/* СИММЕТРИЧНЫЙ КРЕСТИК в открытом состоянии */
.mobile-menu-toggle.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* === ОТКЛЮЧЕННЫЕ ПУНКТЫ === */
.menu-item.disabled .menu-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-item.disabled .menu-link:hover {
    background-color: transparent;
    color: inherit;
}

/* ===================================
   ДЕСКТОП (769px и больше)
   =================================== */
@media (min-width: 769px) {

    /* Плавные переходы для ссылок */
    .menu-link.level-1,
    .submenu .menu-link {
        transition: all 0.3s ease;
    }

    /* Прижимаем стрелки ближе к тексту на десктопе */
    .menu-arrow-btn, .submenu-arrow-btn {
        margin-left: -12px;
        margin-right: 8px;
    }

    /* Анимация стрелки */
    .menu-arrow {
        transition: transform 0.3s ease;
    }

    /* Поворот стрелки при наведении (ОТКЛЮЧЕНО в пользу клика) */
    /*.menu-level-1>.menu-item:hover .menu-arrow {
        transform: rotate(180deg);
    }*/

    /* Hover эффект для первого уровня */
    .menu-level-1>.menu-item:hover>.menu-link.level-1 {
        background-color: rgba(0, 82, 165, 0.1);
    }

    /* Плавное появление подменю */
    .submenu {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Показываем подменю (ТОЛЬКО при наличии класса submenu-open из JS) */
    .menu-item.submenu-open > .submenu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Скрываем наведение по умолчанию (если хотим строго клик) */
    .menu-item:hover > .submenu {
        display: none;
    }
    .menu-item.submenu-open:hover > .submenu {
        display: block;
    }

    /* Hover эффект для подменю */
    .submenu .menu-item:hover>.menu-link {
        background-color: rgba(0, 82, 165, 0.1);
        padding-left: 25px;
    }

    /* Анимация стрелки вложенного подменю */
    .submenu-arrow {
        transition: transform 0.3s ease;
    }

    .submenu .menu-item:hover .submenu-arrow {
        transform: translateX(5px);
    }
}

/* ===================================
   ПЛАНШЕТЫ (1024px и меньше)
   =================================== */
@media (max-width: 1024px) {
    .menu-link.level-1 {
        padding: 12px 15px;
        font-size: 14px;
    }

    .submenu {
        min-width: 200px;
    }
}

/* ===================================
   МОБИЛЬНЫЕ (768px и меньше)
   =================================== */
@media (max-width: 768px) {
    .menu-link-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .donnu-main-menu {
        display: none;
        flex-direction: column !important;
        position: absolute;
        top: 50px;
        left: 0;
        width: 100%;
        background: #ffffff;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        border-top: 1px solid #e0e0e0;
    }

    .donnu-main-menu.active {
        display: flex !important;
    }

    .menu-level-1 {
        flex-direction: column !important;
        width: 100%;
    }

    .menu-level-1>.menu-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-link.level-1,
    .submenu .menu-link {
        width: 100%;
        padding: 15px 20px;
        color: #0052a5;
        background: transparent;
        cursor: pointer;
        font-size: 16px;
        font-family: Arial, sans-serif;
    }

    .menu-link.level-1:active,
    .submenu .menu-link:active {
        background: rgba(0, 82, 165, 0.1);
        color: #0052a5;
    }

    /* Анимация стрелки первого уровня */
    .menu-arrow {
        display: inline-block;
        margin-left: 8px;
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .menu-arrow.active {
        transform: rotate(180deg);
    }

    /* Анимация стрелки вложенных уровней */
    .submenu-arrow {
        display: inline-block;
        float: right;
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .submenu-arrow.active {
        transform: rotate(90deg);
    }

    .submenu {
        display: none !important;
        position: static !important;
        background: #ffffff !important;
        width: 100% !important;
        margin-left: 15px !important;
        box-shadow: none !important;
        border: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .submenu[style*="display: block"] {
        display: block !important;
    }

    .submenu .submenu {
        background: #ffffff !important;
        margin-left: 30px !important;
    }
}

.menu-item {
    white-space: normal !important;
    /* Разрешаем перенос текста в пункте */
    flex: 0 0 auto;
    /* Пункты не растягиваются, но и не сжимаются "в ноль" */
    /* Можно ограничить min- и max-width для пунктов: */
    min-width: 80px;
    max-width: 240px;
}

.menu-item-more {
    position: relative;
}

.submenu-more {
    left: auto !important;
    right: 0 !important;
    min-width: 180px;
    background: inherit;
    position: absolute;
    top: 100%;
    z-index: 999;
}


@media (max-width: 768px) {
    .menu-item-more {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .menu-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .top-panel {
        /* скрываем верхнюю панель на мобилках */
        display: none !important;
    }
}

/* ===================================
   ВЫПАДАЮЩЕЕ ВЕРТИКАЛЬНОЕ МЕНЮ (DROPDOWN)
   Общие стили для всех контекстов:
   - .faculty-main-menu-wrapper (страницы факультетов)
   - .dept-main-menu-dropdown (страницы кафедр: меню университета)
   - .dept-fac-menu-dropdown (страницы кафедр: меню факультета)
   =================================== */

.faculty-main-menu-wrapper .donnu-main-menu,
.dept-main-menu-dropdown .donnu-main-menu,
.dept-fac-menu-dropdown .donnu-main-menu,
.div-main-menu-wrapper .donnu-main-menu {
    display: flex;
    flex-direction: column !important;
    width: 100%;
    background: #ffffff;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    /* Сброс мобильных стилей — меню внутри dropdown-wrapper не нуждается в абсолютном позиционировании */
    position: static !important;
    top: auto !important;
    left: auto !important;
    border-top: none !important;
}

/* На факультетах меню скрыто по умолчанию, показывается через JS */
.faculty-main-menu-wrapper .donnu-main-menu,
.div-main-menu-wrapper .donnu-main-menu {
    display: none;
}

.faculty-main-menu-wrapper .donnu-main-menu.active,
.div-main-menu-wrapper .donnu-main-menu.active {
    display: flex !important;
}

.faculty-main-menu-wrapper .menu-level-1,
.dept-main-menu-dropdown .menu-level-1,
.dept-fac-menu-dropdown .menu-level-1,
.div-main-menu-wrapper .menu-level-1 {
    flex-direction: column !important;
    width: 100%;
}

.faculty-main-menu-wrapper .menu-level-1>.menu-item,
.dept-main-menu-dropdown .menu-level-1>.menu-item,
.dept-fac-menu-dropdown .menu-level-1>.menu-item,
.div-main-menu-wrapper .menu-level-1>.menu-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.faculty-main-menu-wrapper .menu-link-wrapper,
.dept-main-menu-dropdown .menu-link-wrapper,
.dept-fac-menu-dropdown .menu-link-wrapper,
.div-main-menu-wrapper .menu-link-wrapper {
    width: 100%;
    justify-content: space-between;
}

.faculty-main-menu-wrapper .menu-link.level-1,
.faculty-main-menu-wrapper .submenu .menu-link,
.dept-main-menu-dropdown .menu-link.level-1,
.dept-main-menu-dropdown .submenu .menu-link,
.dept-fac-menu-dropdown .menu-link.level-1,
.dept-fac-menu-dropdown .submenu .menu-link,
.div-main-menu-wrapper .menu-link.level-1,
.div-main-menu-wrapper .submenu .menu-link {
    width: 100%;
    padding: 15px 20px;
    color: #0052a5;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    font-family: Arial, sans-serif;
    white-space: normal;
}

.faculty-main-menu-wrapper .submenu,
.dept-main-menu-dropdown .submenu,
.dept-fac-menu-dropdown .submenu,
.div-main-menu-wrapper .submenu {
    display: none;
    position: static !important;
    background: #ffffff !important;
    width: 100% !important;
    margin-left: 15px !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.faculty-main-menu-wrapper .submenu[style*='display: block'],
.dept-main-menu-dropdown .submenu[style*='display: block'],
.dept-fac-menu-dropdown .submenu[style*='display: block'],
.div-main-menu-wrapper .submenu[style*='display: block'] {
    display: block !important;
}

.faculty-main-menu-wrapper .submenu .submenu,
.dept-main-menu-dropdown .submenu .submenu,
.dept-fac-menu-dropdown .submenu .submenu,
.div-main-menu-wrapper .submenu .submenu {
    margin-left: 30px !important;
}

.faculty-main-menu-wrapper .menu-arrow,
.dept-main-menu-dropdown .menu-arrow,
.dept-fac-menu-dropdown .menu-arrow,
.div-main-menu-wrapper .menu-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

/* Отключаем hover для подменю - только по клику */
.faculty-main-menu-wrapper .menu-item:hover>.submenu,
.dept-main-menu-dropdown .menu-item:hover>.submenu,
.dept-fac-menu-dropdown .menu-item:hover>.submenu,
.div-main-menu-wrapper .menu-item:hover>.submenu {
    display: none !important;
    opacity: 0 !important;
}

/* Отключаем анимацию стрелки при наведении */
.faculty-main-menu-wrapper .menu-level-1>.menu-item:hover .menu-arrow,
.dept-main-menu-dropdown .menu-level-1>.menu-item:hover .menu-arrow,
.dept-fac-menu-dropdown .menu-level-1>.menu-item:hover .menu-arrow,
.div-main-menu-wrapper .menu-level-1>.menu-item:hover .menu-arrow {
    transform: none;
}

/* Показываем подменю только через класс submenu-open (по клику) */
.faculty-main-menu-wrapper .menu-item.submenu-open>.submenu,
.dept-main-menu-dropdown .menu-item.submenu-open>.submenu,
.dept-fac-menu-dropdown .menu-item.submenu-open>.submenu,
.div-main-menu-wrapper .menu-item.submenu-open>.submenu {
    display: block !important;
    opacity: 1 !important;
}

/* Стрелка при открытом подменю */
.faculty-main-menu-wrapper .menu-item.submenu-open>.menu-link-wrapper .menu-arrow-btn,
.dept-main-menu-dropdown .menu-item.submenu-open>.menu-link-wrapper .menu-arrow-btn,
.dept-fac-menu-dropdown .menu-item.submenu-open>.menu-link-wrapper .menu-arrow-btn,
.div-main-menu-wrapper .menu-item.submenu-open>.menu-link-wrapper .menu-arrow-btn {
    transform: rotate(180deg);
}

/* === Пункт «Кафедры» (span.menu-label) в вертикальном меню факультета на кафедральных страницах === */
.dept-fac-menu-dropdown li.has-submenu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}

.dept-fac-menu-dropdown li .menu-label {
    display: block;
    padding: 15px 20px;
    color: #0052a5;
    font-size: 16px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    text-transform: none;
    cursor: default;
}

/* Стрелка рядом с «Кафедры» в этом dropdown */
.dept-fac-menu-dropdown li.has-submenu>.submenu-toggle {
    padding: 15px 15px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dept-fac-menu-dropdown li.open>.submenu-toggle {
    transform: rotate(180deg);
}

/* === ВЫРАВНИВАНИЕ ПЕРЕНЕСЕННОЙ КНОПКИ АВТОРИЗАЦИИ === */
@media (min-width: 769px) {
    .header-auth-desktop {
        margin-left: 25px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
}
/* End */


/* Start:/local/templates/dongu/components/bitrix/search.title/dongu/style.css?17721342996085*/
/* Стили поисковой формы в шапке ДонГУ */

/* Обёртка поиска в шапке */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Кнопка-иконка поиска */
.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--donnu-blue, #0052a5);
  border-radius: 50%;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.search-toggle-btn:hover {
  background: rgba(0, 82, 165, 0.08);
}

.search-toggle-btn.active {
  background: var(--donnu-blue, #0052a5);
  color: #fff;
}

/* Контейнер формы — скрыт по умолчанию */
.dongu-search-title {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  width: 0;
  opacity: 0;
  overflow: visible;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
  pointer-events: none;
}

.dongu-search-title.open {
  width: 360px;
  opacity: 1;
  pointer-events: all;
}

/* Форма */
.dongu-search-form {
  background: #fff;
  border: 1px solid var(--donnu-grey, #e0e0e0);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.dongu-search-input-wrapper {
  display: flex;
  align-items: center;
}

.dongu-search-field {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
  color: var(--donnu-text, #333);
  min-width: 0;
}

.dongu-search-field::placeholder {
  color: #aaa;
}

.dongu-search-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--donnu-blue, #0052a5);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.dongu-search-submit-btn:hover {
  background: #003d7a;
}

/* Выпадающие подсказки */
.dongu-search-suggestions {
  background: #fff;
  border: 1px solid var(--donnu-grey, #e0e0e0);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dongu-search-suggest-item {
  border-bottom: 1px solid #f0f0f0;
}

.dongu-search-suggest-item:last-child {
  border-bottom: none;
}

.dongu-search-suggest-link {
  display: block;
  padding: 10px 16px;
  text-decoration: none !important;
  color: var(--donnu-text, #333) !important;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.dongu-search-suggest-link:hover {
  background: var(--donnu-bg, #f6f8fa);
  color: var(--donnu-blue, #0052a5) !important;
}

/* Результаты из инфоблоков — преподаватели */
.dongu-suggest-employee .dongu-search-suggest-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dongu-suggest-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--donnu-blue, #0052a5);
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 2px;
  align-self: flex-start;
}

.dongu-suggest-badge-faculty {
  background: #00897b;
}

.dongu-suggest-badge-department {
  background: #e65100;
}

.dongu-suggest-badge-education {
  background: #6a1b9a;
}

.dongu-suggest-badge-division {
  background: #00695c;
}

/* Факультеты, кафедры, подразделения и ОП в автокомплите тоже flex */
.dongu-suggest-faculty .dongu-search-suggest-link,
.dongu-suggest-department .dongu-search-suggest-link,
.dongu-suggest-division .dongu-search-suggest-link,
.dongu-suggest-education .dongu-search-suggest-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dongu-suggest-name {
  font-weight: 500;
}

.dongu-suggest-subtitle {
  display: block;
  font-size: 0.8rem;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Обёртка поиск+бургер — всегда справа, не сжимается */
.header-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.fac-header-wrapper .search-toggle-btn,
.dept-header-wrapper .search-toggle-btn {
  color: var(--donnu-blue, #0052a5);
}

/* Форма поиска в бургер-меню — скрыта на десктопе */
.mobile-search-form {
  display: none;
}

/* Адаптив */
@media (max-width: 768px) {

  /* Скрываем иконку поиска из шапки на мобильном — поиск перенесён в бургер-меню */
  .header-search-wrapper {
    display: none !important;
  }

  /* Форма поиска в бургер-меню */
  .mobile-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 82, 165, 0.15);
  }

  .mobile-search-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    font-size: 15px;
    border: 1.5px solid #ccd6e0;
    border-right: none;
    border-radius: 8px 0 0 8px;
    outline: none;
    background: #f7f9fb;
    color: #333;
    transition: border-color 0.2s;
  }

  .mobile-search-form input[type="text"]:focus {
    border-color: #0052a5;
    background: #fff;
  }

  .mobile-search-form input[type="text"]::placeholder {
    color: #999;
  }

  .mobile-search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 42px;
    border: 1.5px solid #0052a5;
    border-radius: 0 8px 8px 0;
    background: #0052a5;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .mobile-search-form button:hover {
    background: #003d7a;
  }
}
/* End */


/* Start:/local/templates/dongu/template_styles.css?178098088996913*/
:root {
    --donnu-blue: #0052a5;
    --donnu-red: #bf1126;
    --donnu-black: #191919;
    --donnu-gold: #ffd700;
    --donnu-bg: #f6f8fa;
    --donnu-grey: #e0e0e0;
    --donnu-text: #333333;
    --donnu-white: #ffffff;
    --donnu-width: 100%;
}

* {
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--donnu-text);
    background: var(--donnu-white);
}

.container {
    max-width: var(--donnu-width) !important;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    justify-content: center;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--donnu-blue);
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--donnu-grey);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--donnu-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--donnu-red);
    text-decoration: underline;
}

.header {
    background: var(--donnu-white);
    border-bottom: 3px solid var(--donnu-blue);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    /*height: 60px;*/
    margin-right: 15px;
}

.logo-text h1 {
    color: var(--donnu-blue);
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
    border: none;
}

.logo-text p {
    color: var(--donnu-text);
    font-size: 0.9rem;
    margin: 0;
}

.main-slider {
    background: linear-gradient(135deg, var(--donnu-blue) 0%, var(--donnu-red) 100%);
    color: var(--donnu-white);
    border-radius: 12px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
}

.slider-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.slider-content {
    flex: 1;
}

.slider-content h2 {
    color: var(--donnu-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slider-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slider-image {
    flex: 0 0 300px;
    text-align: center;
}

.slider-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    margin: 2rem auto;
    max-width: var(--donnu-width);
    /*text-align: justify;*/
    box-sizing: border-box;
    padding: 0 15px;
    width: 100%;
}

.main-content {
    flex: 2;
}

.sidebar {
    flex: 1;
    max-width: 350px;
}

.section {
    margin: 3rem 0;
}

.section h2 {
    color: var(--donnu-blue);
    border-bottom: 3px solid var(--donnu-gold);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.news-section {
    margin: 2rem 0;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-item {
    background: var(--donnu-white);
    border: 1px solid var(--donnu-grey);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--donnu-blue);
}

.news-item h3 {
    color: var(--donnu-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-item .date {
    color: var(--donnu-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-item p {
    color: var(--donnu-text);
    line-height: 1.5;
}

.quick-services {
    margin: 3rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.service-item,
.service-card {
    background: var(--donnu-bg);
    border: 2px solid var(--donnu-grey);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.service-item:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--donnu-blue);
    text-decoration: none;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--donnu-blue);
}

.service-item h3,
.service-card h3 {
    color: var(--donnu-blue);
    margin-bottom: 0.5rem;
}

.sidebar-widget {
    background: var(--donnu-bg);
    border: 1px solid var(--donnu-grey);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    color: var(--donnu-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--donnu-gold);
    padding-bottom: 0.5rem;
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
}

.sidebar-widget li {
    border-bottom: 1px solid var(--donnu-grey);
    padding: 0.5rem 0;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: var(--donnu-text);
    font-size: 0.9rem;
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: var(--donnu-blue);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--donnu-red);
    color: var(--donnu-white);
}

.btn-primary:hover {
    background: var(--donnu-gold);
    color: var(--donnu-black);
    text-decoration: none;
}

.btn-secondary {
    background: var(--donnu-blue);
    color: var(--donnu-white);
}

.btn-secondary:hover {
    background: var(--donnu-black);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--donnu-blue);
    border: 2px solid var(--donnu-blue);
}

.btn-outline:hover {
    background: var(--donnu-blue);
    color: var(--donnu-white);
    text-decoration: none;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--donnu-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-table th,
.info-table td {
    border: 1px solid var(--donnu-grey);
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}

.info-table th {
    background: var(--donnu-blue);
    color: var(--donnu-white);
    font-weight: bold;
}

.info-table td:first-child {
    background: var(--donnu-bg);
    font-weight: 500;
    width: 30%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--donnu-black);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--donnu-grey);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--donnu-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 165, 0.1);
}

blockquote {
    background: var(--donnu-bg);
    border-left: 4px solid var(--donnu-blue);
    margin: 2rem 0;
    padding: 1.5rem;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

blockquote cite {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: var(--donnu-blue);
}

.breadcrumbs {
    background: var(--donnu-bg);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: var(--donnu-text);
}

.breadcrumbs a {
    color: var(--donnu-blue);
    text-decoration: none;
}



.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }

    .content-wrapper {
        gap: 1.5rem;
    }

    .news-list,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .slider-container {
        padding: 2rem;
    }

    .slider-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }


    .content-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar {
        max-width: none;
        order: -1;
    }


    .slider-container {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        min-height: 250px;
    }

    .slider-content h2 {
        font-size: 1.8rem;
    }

    .slider-image {
        flex: none;
        margin-top: 1rem;
    }


    .news-list,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }




    .info-table {
        font-size: 0.9rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding-bottom: 0.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .header {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 40px;
    }

    .main-slider {
        border-radius: 6px;
        margin: 1rem 0;
    }

    .slider-container {
        padding: 1rem;
        min-height: 200px;
    }

    .slider-content h2 {
        font-size: 1.5rem;
    }

    .news-item,
    .service-item,
    .sidebar-widget {
        padding: 1rem;
    }

    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }


    .table-responsive {
        overflow-x: auto;
    }

    .info-table {
        min-width: 500px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }

    .slider-container {
        padding: 0.5rem;
    }

    .news-item,
    .service-item,
    .sidebar-widget {
        padding: 0.75rem;
    }

    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ==============================================
   КОНТЕНТ: изображения, таблицы, пустые строки
   (правила для контента, перенесённого с donnu.ru)
   ============================================== */

/* --- Изображения основного текста: если шире страницы → 75%, если при этом >750px → 750px --- */
/* Не затрагивает: фото преподавателей, логотипы, слайдер, dean-photo и т.д. */
.faculty-description img,
.division-description img,
.content-area img,
.page-content img,
.page-content-section img,
.dept-content img,
.news-detail-text img {
    max-width: min(75%, 750px);
    height: auto !important;
    display: block;
    margin: 1.5rem auto;
    float: none !important;
}

/* --- Слайдер на главной: 80% десктоп (не более 1500px), 100% мобильный --- */
.keen-slider-wrapper {
    max-width: min(80%, 1500px);
    margin: 0 auto;
}

/* --- Таблицы из donnu.ru: сохраняем колоночную вёрстку, убираем фиксированные пиксели --- */
.faculty-description table:not(.sveden-table):not(.info-table):not(.table),
.division-description table:not(.sveden-table):not(.info-table):not(.table),
.main-content table:not(.sveden-table):not(.info-table):not(.table),
.content-area table:not(.sveden-table):not(.info-table):not(.table),
.page-content table:not(.sveden-table):not(.info-table):not(.table),
.page-content-section table:not(.sveden-table):not(.info-table):not(.table),
.content-wrapper table:not(.sveden-table):not(.info-table):not(.table) {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: transparent;
    box-shadow: none;
    border-radius: 6px;
    overflow: hidden;
    table-layout: auto;
}

.faculty-description table:not(.sveden-table):not(.info-table):not(.table) th,
.faculty-description table:not(.sveden-table):not(.info-table):not(.table) td,
.division-description table:not(.sveden-table):not(.info-table):not(.table) th,
.division-description table:not(.sveden-table):not(.info-table):not(.table) td,
.main-content table:not(.sveden-table):not(.info-table):not(.table) th,
.main-content table:not(.sveden-table):not(.info-table):not(.table) td,
.content-area table:not(.sveden-table):not(.info-table):not(.table) th,
.content-area table:not(.sveden-table):not(.info-table):not(.table) td,
.page-content table:not(.sveden-table):not(.info-table):not(.table) th,
.page-content table:not(.sveden-table):not(.info-table):not(.table) td,
.page-content-section table:not(.sveden-table):not(.info-table):not(.table) th,
.page-content-section table:not(.sveden-table):not(.info-table):not(.table) td,
.content-wrapper table:not(.sveden-table):not(.info-table):not(.table) th,
.content-wrapper table:not(.sveden-table):not(.info-table):not(.table) td {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: none !important;
    padding: .75rem 1rem !important;
    text-align: left;
    vertical-align: top;
}

.faculty-description table:not(.sveden-table):not(.info-table):not(.table) th,
.division-description table:not(.sveden-table):not(.info-table):not(.table) th,
.main-content table:not(.sveden-table):not(.info-table):not(.table) th,
.content-area table:not(.sveden-table):not(.info-table):not(.table) th,
.page-content table:not(.sveden-table):not(.info-table):not(.table) th,
.page-content-section table:not(.sveden-table):not(.info-table):not(.table) th,
.content-wrapper table:not(.sveden-table):not(.info-table):not(.table) th,
.faculty-description table:not(.sveden-table):not(.info-table):not(.table) thead td,
.division-description table:not(.sveden-table):not(.info-table):not(.table) thead td,
.main-content table:not(.sveden-table):not(.info-table):not(.table) thead td,
.content-area table:not(.sveden-table):not(.info-table):not(.table) thead td,
.page-content table:not(.sveden-table):not(.info-table):not(.table) thead td,
.page-content-section table:not(.sveden-table):not(.info-table):not(.table) thead td,
.content-wrapper table:not(.sveden-table):not(.info-table):not(.table) thead td {
    background: #dce8f5;
    color: var(--donnu-text);
    font-weight: 600;
}

.faculty-description table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even),
.division-description table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even),
.main-content table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even),
.content-area table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even),
.page-content table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even),
.page-content-section table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even),
.content-wrapper table:not(.sveden-table):not(.info-table):not(.table) tr:nth-child(even) {
    background: var(--donnu-bg);
}

/* Переопределяем ссылки внутри заголовков таблицы */
.page-content table:not(.sveden-table) th a,
.page-content table:not(.sveden-table) thead td a {
    color: var(--donnu-blue) !important;
}

/* Мобильные: таблицы превращаются в карточки */
@media (max-width: 600px) {

    .faculty-description table:not(.sveden-table):not(.info-table):not(.table),
    .division-description table:not(.sveden-table):not(.info-table):not(.table),
    .main-content table:not(.sveden-table):not(.info-table):not(.table),
    .content-area table:not(.sveden-table):not(.info-table):not(.table),
    .page-content table:not(.sveden-table):not(.info-table):not(.table),
    .page-content-section table:not(.sveden-table):not(.info-table):not(.table),
    .content-wrapper table:not(.sveden-table):not(.info-table):not(.table) {
        display: block !important;
    }

    .faculty-description table:not(.sveden-table):not(.info-table):not(.table) thead,
    .division-description table:not(.sveden-table):not(.info-table):not(.table) thead,
    .main-content table:not(.sveden-table):not(.info-table):not(.table) thead,
    .content-area table:not(.sveden-table):not(.info-table):not(.table) thead,
    .page-content table:not(.sveden-table):not(.info-table):not(.table) thead,
    .page-content-section table:not(.sveden-table):not(.info-table):not(.table) thead,
    .content-wrapper table:not(.sveden-table):not(.info-table):not(.table) thead {
        display: none !important;
    }

    .faculty-description table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .faculty-description table:not(.sveden-table):not(.info-table):not(.table) tr,
    .faculty-description table:not(.sveden-table):not(.info-table):not(.table) td,
    .division-description table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .division-description table:not(.sveden-table):not(.info-table):not(.table) tr,
    .division-description table:not(.sveden-table):not(.info-table):not(.table) td,
    .main-content table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .main-content table:not(.sveden-table):not(.info-table):not(.table) tr,
    .main-content table:not(.sveden-table):not(.info-table):not(.table) td,
    .content-area table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .content-area table:not(.sveden-table):not(.info-table):not(.table) tr,
    .content-area table:not(.sveden-table):not(.info-table):not(.table) td,
    .page-content table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .page-content table:not(.sveden-table):not(.info-table):not(.table) tr,
    .page-content table:not(.sveden-table):not(.info-table):not(.table) td,
    .page-content-section table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .page-content-section table:not(.sveden-table):not(.info-table):not(.table) tr,
    .page-content-section table:not(.sveden-table):not(.info-table):not(.table) td,
    .content-wrapper table:not(.sveden-table):not(.info-table):not(.table) tbody,
    .content-wrapper table:not(.sveden-table):not(.info-table):not(.table) tr,
    .content-wrapper table:not(.sveden-table):not(.info-table):not(.table) td {
        display: block !important;
        width: 100% !important;
    }

    .page-content table:not(.sveden-table):not(.info-table):not(.table) tr {
        margin-bottom: .75rem;
        border: 1px solid var(--donnu-grey);
        border-radius: 6px;
        padding: .5rem;
        background: var(--donnu-white);
    }

    .page-content table:not(.sveden-table):not(.info-table):not(.table) td {
        border: none !important;
        padding: .25rem .5rem !important;
    }
}

/* --- Скрытие пустых абзацев и повторных <br> --- */
.faculty-description p:empty,
.division-description p:empty,
.main-content p:empty,
.content-area p:empty,
.page-content p:empty,
.page-content-section p:empty,
.content-wrapper p:empty {
    display: none;
}

.faculty-description br+br,
.division-description br+br,
.main-content br+br,
.content-area br+br,
.page-content br+br,
.page-content-section br+br,
.content-wrapper br+br {
    display: none;
}

/* --- Мобильные: изображения и слайдер на всю ширину --- */
@media (max-width: 768px) {

    .faculty-description img,
    .division-description img,
    .content-area img,
    .page-content img,
    .page-content-section img,
    .dept-content img,
    .news-detail-text img {
        max-width: 100% !important;
        width: auto !important;
    }

    .keen-slider-wrapper {
        max-width: 100%;
    }
}

@media print {

    .header,
    .main-menu,
    .sidebar,
    .footer,
    .mobile-menu-toggle {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }

    .main-content {
        width: 100%;
        max-width: none;
    }

    .content-wrapper {
        display: block;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .btn {
        border: 1px solid #000;
        background: white !important;
        color: black !important;
    }
}

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 2dppx) {

    .logo img,
    .slider-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

.top-panel {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
    font-size: 13px;
}

.contacts span {
    margin-right: 20px;
    color: #6c757d;
}

.accessibility-link {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.accessibility-link:hover {
    text-decoration: underline;
}

.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #dee2e6;
}

.university-name {
    color: #2c5aa0;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.university-description {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.hero-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: #fff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.info-blocks {
    margin-bottom: 40px;
}

.info-block {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    text-align: center;
}

.info-block h3 {
    color: #2c5aa0;
    font-size: 24px;
    margin-bottom: 15px;
}

.info-block .icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

.news-item h4 {
    color: #2c5aa0;
    margin-bottom: 10px;
}

.news-date {
    color: #6c757d;
    font-size: 13px;
}

.table {
    background: #fff;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 20px;
}

.table th {
    background: #2c5aa0;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.sveden-page {
    padding: 30px 0;
}

.document-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.document-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 15px 20px;
}

.document-item a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.document-item a:hover {
    text-decoration: underline;
}

.document-icon {
    margin-right: 10px;
    font-size: 18px;
}

.document-size {
    color: #6c757d;
    font-size: 12px;
    margin-left: auto;
}



.accessibility-mode {
    background: #000 !important;
    color: #fff !important;
}

.accessibility-mode a {
    color: #ffff00 !important;
}

.accessibility-mode .table th {
    background: #333 !important;
    color: #fff !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.btn-outline-primary {
    border: 2px solid #2c5aa0;
    color: #2c5aa0;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #2c5aa0;
    color: #fff;
}

/* Стили футера в корпоративном стиле */
.site-footer {
    background: linear-gradient(180deg, #002d62 0%, #001a39 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2.5rem;
    padding: 2.5rem 0 0;
    width: 100%;
    clear: both;
    border-top: 4px solid var(--donnu-gold);
    font-family: 'Arial', sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.footer-block h4 {
    color: var(--donnu-gold);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px;
}

.footer-block h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: var(--donnu-gold);
}

.footer-block p,
.footer-block a {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-block p {
    margin-bottom: 0.8rem;
}

.footer-block p:last-child {
    margin-bottom: 0;
}


.footer-block a:hover {
    color: var(--donnu-gold);
}

/* Брендинг */
.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 48px;
    width: auto;
}

.footer-univ-name {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.footer-brand-desc {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Ссылки */
.footer-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-links ul li {
    margin-bottom: 0.6rem;
}

.footer-nav-links ul li a {
    display: inline-block;
    position: relative;
    padding-left: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.footer-nav-links ul li a:hover {
    transform: translateX(4px);
}

/* Соцсети */
.social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.social li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
}

.social svg,
.social img.social-icon {
    height: 18px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.social li a:hover svg,
.social li a:hover img.social-icon {
    opacity: 1;
    transform: scale(1.15);
}

/* Нижняя полоса */
.footer-bottom {
    background: #00152e;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    width: 100%;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Стили для панели "Хлебные крошки" */
.breadcrumbs-panel {
    background: #F3F3F3;
    min-height: 45px;
    /* панель может увеличиваться, если текст переносится */
    padding: 0 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid #E0E0E0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    /* вертикальное центрирование содержимого панели */
}

.breadcrumbs-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs-panel li {
    color: #3F3F3F;
    /* обычный тёмно-серый */
    font-size: 1rem;
    margin-right: 4px;
    position: relative;
}

.breadcrumbs-panel li:after {
    content: '>';
    color: #A5A5A5;
    /* разделитель светло-серый */
    margin: 0 7px;
}

.breadcrumbs-panel li:last-child {
    color: #1A2E60;
    /* фирменный синий для последнего элемента */
}

.breadcrumbs-panel li:last-child:after {
    content: '';
}

.breadcrumbs-panel a {
    color: #3F3F3F;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-panel a:hover {
    color: #1A2E60;
    /* синий при наведении */
    text-decoration: underline;
}

/* === Цветовая гамма ДонНУ === */
:root {
    --donnu-blue: #004b87;
    --donnu-dark: #003366;
    --donnu-gray: #f4f6f9;
    --donnu-border: #e1e5eb;
}

/* === Шапка факультета === */
.fac-header-wrapper {
    background: #fff;
    border-bottom: 3px solid var(--donnu-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.fac-header-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 20px;
    flex-shrink: 0;
}

.fac-menu {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.fac-menu > ul {
    flex: 1;
    min-width: 0;
}

.fac-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fac-univ-logo img {
    height: 60px;
    width: auto;
}

.fac-separator {
    width: 1px;
    height: 50px;
    background-color: var(--donnu-border);
}

.fac-local-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fac-local-brand img {
    height: 55px;
    width: auto;
}

.fac-titles h1 {
    font-size: 18px;
    line-height: 1.2;
    color: var(--donnu-dark);
    margin: 0;
    padding: 0;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 300px;
}

.fac-titles span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Меню факультета */
.fac-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.fac-menu ul li a,
.fac-menu ul li .menu-label {
    text-decoration: none;
    color: var(--donnu-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

.fac-menu ul li .menu-label {
    cursor: default;
}

.fac-menu ul li a:hover,
.fac-menu ul li.selected a {
    color: var(--donnu-blue);
    border-bottom: 2px solid var(--donnu-blue);
}

/* Подменю кафедр */
.fac-menu ul li {
    position: relative;
}

/* Запрет переноса стрелки выпадающего меню на новую строку */
.fac-menu ul li.has-submenu,
.dept-menu ul li.has-submenu,
.div-menu ul li.has-submenu {
    display: inline-flex !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.fac-menu ul li.has-submenu>.submenu-toggle,
.dept-menu ul li.has-submenu>.submenu-toggle,
.div-menu ul li.has-submenu>.submenu-toggle {
    flex-shrink: 0;
    margin-left: auto;
}

/* Бургер-кнопка факультетов скрыта на десктопе */
.fac-mobile-toggle {
    display: none;
}

/* === Глобальный burger-mode (переполнение меню — любой экран) === */
.fac-header-wrapper {
    position: relative;
}

/* Кнопка авторизации внутри меню (десктоп) */
.header-auth-inline {
    margin-left: auto;
    padding-right: 20px;
    flex-shrink: 0;
}

.fac-menu.burger-mode {
    display: none !important;
}

.fac-menu.burger-mode.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--donnu-border);
}

/* В burger-mode auth-кнопка видна в dropdown */
.fac-menu.burger-mode .header-auth-inline {
    padding: 12px 20px;
    margin-left: 0;
    border-top: 1px solid var(--donnu-border);
}

.fac-mobile-toggle.burger-mode {
    display: block !important;
    position: relative !important;
    background: transparent;
    border: 2px solid #0052a5;
    border-radius: 5px;
    cursor: pointer;
    padding: 0;
    width: 45px;
    height: 45px;
    outline: none;
    flex-shrink: 0;
}

/* Когда меню в burger-mode, header-row и header-actions растягиваются */
.fac-header-wrapper:has(.fac-menu.burger-mode) .fac-header-row {
    flex: 1;
}

.fac-header-wrapper:has(.fac-menu.burger-mode) .header-actions {
    flex: 1;
}

.fac-header-wrapper:has(.fac-menu.burger-mode) .fac-mobile-toggle.burger-mode {
    margin-left: auto;
}

.fac-mobile-toggle.burger-mode span {
    display: block;
    position: absolute;
    left: 50%;
    width: 28px;
    height: 3px;
    background-color: #0052a5;
    border-radius: 2px;
    margin-left: -14px;
    transition: all 0.3s ease;
}

.fac-mobile-toggle.burger-mode span:nth-child(1) {
    top: 12px;
}

.fac-mobile-toggle.burger-mode span:nth-child(2) {
    top: 21px;
}

.fac-mobile-toggle.burger-mode span:nth-child(3) {
    top: 30px;
}

.fac-mobile-toggle.burger-mode.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.fac-mobile-toggle.burger-mode.active span:nth-child(2) {
    opacity: 0;
}

.fac-mobile-toggle.burger-mode.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.fac-menu.burger-mode ul {
    flex-direction: column;
    gap: 0;
}

.fac-menu.burger-mode ul li {
    width: 100%;
    border-bottom: 1px solid var(--donnu-border);
}

.fac-menu.burger-mode ul li a,
.fac-menu.burger-mode ul li .menu-label {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
}

.fac-menu.burger-mode ul li .submenu {
    position: static !important;
    background: #f5f5f5 !important;
    box-shadow: none !important;
    border: none !important;
    min-width: auto !important;
    max-width: none !important;
    padding-left: 20px !important;
}

/* === Конец глобального burger-mode === */

.fac-menu ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--donnu-border);
    border-top: 3px solid var(--donnu-blue);
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.fac-menu ul li.open .submenu,
.fac-menu ul li.has-submenu:hover .submenu {
    display: flex;
    opacity: 1 !important;
    transform: none !important;
}

.fac-menu ul li .submenu li {
    width: 100%;
    padding: 0;
}

.fac-menu ul li .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    color: #333;
    border-bottom: none;
    white-space: normal;
    line-height: 1.4;
}

.fac-menu ul li .submenu li a:hover,
.div-menu ul li .submenu li a:hover {
    background: var(--donnu-gray);
    color: var(--donnu-blue);
}

/* === Priority Navigation: кнопка «Ещё» === */
.priority-more-item {
    position: relative;
    flex-shrink: 0;
}

.priority-more-btn {
    display: inline-block;
    text-decoration: none;
    color: var(--donnu-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.priority-more-btn:hover,
.priority-more-item.open .priority-more-btn {
    color: var(--donnu-blue);
}

.priority-more-submenu {
    display: none !important;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    min-width: 200px;
    max-width: 360px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--donnu-border);
    border-top: 3px solid var(--donnu-blue);
    padding: 6px 0;
    z-index: 1001;
    flex-direction: column;
    gap: 0;
}

.priority-more-item.open .priority-more-submenu {
    display: flex !important;
}

.priority-more-submenu li {
    width: 100%;
}

.priority-more-submenu li a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #333 !important;
    text-decoration: none !important;
    white-space: normal !important;
    line-height: 1.4 !important;
}

/* «Кафедры» в «Ещё» — span.menu-label вместо a */
.priority-more-submenu li .menu-label {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    color: #333 !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    cursor: default;
    flex: 1;
}

/* li.has-submenu внутри «Ещё»: текст + стрелка в одну строку */
.priority-more-submenu li.has-submenu {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap;
}

.priority-more-submenu li.has-submenu>.submenu-toggle {
    padding: 10px 15px;
    font-size: 12px;
    border-left: none !important;
    flex-shrink: 0;
}


.priority-more-submenu li a:hover {
    background: var(--donnu-gray);
    color: var(--donnu-blue) !important;
    border-bottom: none !important;
}

/* Блокируем hover-submenu внутри «Ещё» только если не открыто кликом — предотвращает подёргивание */
.priority-more-submenu li.has-submenu:not(.open):hover>.submenu {
    display: none !important;
    opacity: 0 !important;
}

/* dept-menu: аналогичные стили */
.dept-menu .priority-more-btn {
    font-size: 13px;
}


/* === Стрелка-индикатор (toggle) подменю === */
.submenu-toggle {
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0 5px;
    user-select: none;
    line-height: 1;
}

/* На десктопе НЕ прячем стрелки, а анимируем, как в главном меню */
@media (min-width: 769px) {

    /* Прижимаем стрелки ближе к тексту на десктопе */
    .fac-menu:not(.burger-mode) ul li.has-submenu>.submenu-toggle,
    .dept-menu:not(.burger-mode) ul li.has-submenu>.submenu-toggle,
    .div-menu:not(.burger-mode) ul li.has-submenu>.submenu-toggle {
        margin-left: 6px !important;
    }

    /* Базовое скрытие подменю с начальной позицией для анимации */
    .fac-menu ul li .submenu,
    .dept-menu ul li .submenu,
    .div-menu ul li .submenu {
        display: none;
        /* fallback */
    }

    /* На десктопе подменю всегда flex (чтобы анимация opacity/transform работала плавно) 
       Но мы прячем его через visibility и opacity */
    .fac-menu:not(.burger-mode) ul li .submenu,
    .dept-menu:not(.burger-mode) ul li .submenu,
    .div-menu:not(.burger-mode) ul li .submenu {
        display: flex;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    /* Вложенные подменю сдвигаются по X вместо Y для анимации появления сбоку */
    .fac-menu:not(.burger-mode) ul li .submenu .submenu,
    .dept-menu:not(.burger-mode) ul li .submenu .submenu,
    .div-menu:not(.burger-mode) ul li .submenu .submenu {
        transform: translateX(-10px);
    }

    /* Десктопный hover для выпадающих меню */
    .fac-menu:not(.burger-mode) ul li.has-submenu:hover>.submenu,
    .dept-menu:not(.burger-mode) ul li.has-submenu:hover>.submenu,
    .div-menu:not(.burger-mode) ul li.has-submenu:hover>.submenu {
        visibility: visible;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .fac-menu:not(.burger-mode) ul li .submenu li.has-submenu:hover>.submenu,
    .dept-menu:not(.burger-mode) ul li .submenu li.has-submenu:hover>.submenu,
    .div-menu:not(.burger-mode) ul li .submenu li.has-submenu:hover>.submenu {
        transform: translateX(0) !important;
    }

    /* Анимация самой стрелки на десктопе при наведении на пункт меню */
    .fac-menu:not(.burger-mode) ul li.has-submenu:hover>.submenu-toggle,
    .dept-menu:not(.burger-mode) ul li.has-submenu:hover>.submenu-toggle,
    .div-menu:not(.burger-mode) ul li.has-submenu:hover>.submenu-toggle {
        transform: rotate(180deg);
    }

    .fac-menu:not(.burger-mode) ul li .submenu li.has-submenu>.submenu-toggle,
    .dept-menu:not(.burger-mode) ul li .submenu li.has-submenu>.submenu-toggle,
    .div-menu:not(.burger-mode) ul li .submenu li.has-submenu>.submenu-toggle {
        transform: rotate(-90deg);
    }

    .fac-menu:not(.burger-mode) ul li .submenu li.has-submenu:hover>.submenu-toggle,
    .dept-menu:not(.burger-mode) ul li .submenu li.has-submenu:hover>.submenu-toggle,
    .div-menu:not(.burger-mode) ul li .submenu li.has-submenu:hover>.submenu-toggle {
        transform: rotate(0deg);
    }
}

.fac-menu ul li.open>.submenu-toggle,
.div-menu ul li.open>.submenu-toggle,
.dept-menu ul li.open>.submenu-toggle {
    transform: rotate(180deg);
}

/* === Вложенные подменю (2+ уровни) — выпадают вбок на десктопе === */
@media (min-width: 769px) {

    .fac-menu ul li .submenu .submenu,
    .dept-menu ul li .submenu .submenu,
    .div-menu ul li .submenu .submenu {
        top: 0;
        left: 100%;
        right: auto;
        border-top: none;
        border-left: 3px solid var(--donnu-blue);
    }

    .fac-menu ul li .submenu .submenu.submenu-left,
    .dept-menu ul li .submenu .submenu.submenu-left,
    .div-menu ul li .submenu .submenu.submenu-left {
        left: auto !important;
        right: 100% !important;
        border-left: none !important;
        border-right: 3px solid var(--donnu-blue) !important;
    }
}

/* === Карточка Декана === */
.dean-card {
    background: #fff;
    border: 1px solid var(--donnu-border);
    border-radius: 4px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.rector-page-content .dean-card {
    margin-top: 0;
}

.dean-photo {
    flex: 0 0 200px;
}

.dean-photo img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dean-info {
    flex: 1;
}

.dean-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
    display: block;
}

.dean-name {
    font-size: 22px;
    color: var(--donnu-blue);
    margin: 0 0 15px 0;
    font-weight: 700;
    font-family: 'Times New Roman', serif;
}

.dean-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.dean-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.dean-name a:hover {
    color: #bf1126;
    text-decoration: underline;
}

.dean-contact {
    font-size: 14px;
    color: #555;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dean-contact-icon {
    font-size: 16px;
}

/* Переопределение отступов для контактов внутри карточки декана/ректора */
.dean-info .faculty-contacts-section {
    padding: 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dean-info .contact-item {
    padding: 12px 20px;
    gap: 15px;
    align-items: center;
}

.dean-info .contact-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #666;
    font-weight: 600;
}

/* === Сетка Кафедр === */
.dept-list-wrapper {
    margin-top: 20px;
    margin-bottom: 40px;
}

.dept-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.dept-col {
    padding: 15px;
    width: 33.333%;
    display: flex;
}

.dept-card {
    background: #fff;
    border: 1px solid var(--donnu-border);
    border-left: 4px solid var(--donnu-blue);
    padding: 20px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--donnu-blue);
}

.dept-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--donnu-dark);
}

.dept-title a {
    text-decoration: none;
    color: inherit;
}

.dept-head {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.dept-head strong {
    color: #333;
    display: block;
    margin-bottom: 3px;
}

.dept-link {
    font-size: 13px;
    color: var(--donnu-blue);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: auto;
}

/* Адаптив */
@media (max-width: 992px) {
    .dept-col {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .fac-header-wrapper {
        display: block;
    }

    .fac-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .fac-branding {
        flex: 1;
        flex-direction: row;
        align-items: center;
        min-width: 0;
    }

    /* Поиск+бургер справа от брендинга */
    .fac-header-wrapper .header-actions {
        order: 2;
        flex-shrink: 0;
    }

    .fac-mobile-toggle {
        position: relative !important;
        display: block !important;
        background: transparent;
        border: 2px solid #0052a5;
        border-radius: 5px;
        cursor: pointer;
        padding: 0;
        width: 45px;
        height: 45px;
        outline: none;
    }

    .fac-mobile-toggle span {
        display: block;
        position: absolute;
        left: 50%;
        width: 28px;
        height: 3px;
        background-color: #0052a5;
        border-radius: 2px;
        margin-left: -14px;
        transition: all 0.3s ease;
    }

    .fac-mobile-toggle span:nth-child(1) {
        top: 12px;
    }

    .fac-mobile-toggle span:nth-child(2) {
        top: 21px;
    }

    .fac-mobile-toggle span:nth-child(3) {
        top: 30px;
    }

    .fac-mobile-toggle.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }

    .fac-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .fac-mobile-toggle.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    .fac-separator {
        display: none;
    }

    /* Меню факультета под шапкой */
    .fac-menu {
        display: none;
        width: 100%;
        margin-top: 0;
    }

    .fac-menu.active {
        display: flex !important;
        flex-direction: column;
    }

    /* Auth-кнопка в мобильном dropdown */
    .fac-menu.active .header-auth-inline {
        padding: 12px 20px;
        margin-left: 0;
        border-top: 1px solid var(--donnu-border);
    }

    /* Вертикальное меню на мобильных */
    .fac-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .fac-menu ul li {
        width: 100%;
        border-bottom: 1px solid var(--donnu-border);
    }

    .fac-menu ul li a,
    .fac-menu ul li .menu-label {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }

    .fac-menu ul li.has-submenu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .fac-menu ul li.has-submenu>a {
        flex: 1;
    }

    .fac-menu ul li.has-submenu>.submenu-toggle {
        padding: 15px 20px;
        font-size: 14px;
        border-left: 1px solid #eee;
    }


    /* Подменю кафедр на мобильных */
    .fac-menu ul li .submenu {
        position: static !important;
        background: #f5f5f5 !important;
        box-shadow: none !important;
        border: none !important;
        min-width: auto !important;
        max-width: none !important;
        padding-left: 20px !important;
    }

    .fac-menu ul li.open .submenu {
        display: flex !important;
    }

    .fac-menu ul li .submenu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .fac-menu ul li .submenu li:last-child {
        border-bottom: none;
    }

    .fac-menu ul li .submenu li a {
        padding: 12px 20px;
        font-size: 15px;
    }

    .dean-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
    }

    .dean-photo {
        flex: 0 0 auto;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 576px) {
    .dept-col {
        width: 100%;
    }
}

/* === Ландшафтный режим смартфона: меню факультета в 2 строки === */
@media (orientation: landscape) and (max-height: 500px) {
    .fac-header-wrapper {
        display: block;
    }

    .fac-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        position: relative;
        padding: 8px 15px;
    }

    .fac-separator {
        display: none;
    }

    /* Бургер скрыт по умолчанию — JS включит его если надо */
    .fac-mobile-toggle {
        display: none;
    }

    /* Меню видимо, пункты переносятся на 2 строки */
    .fac-menu {
        display: flex !important;
        flex-wrap: wrap;
        width: 100%;
        padding: 4px 15px 6px;
        background: #fff;
        border-top: 1px solid var(--donnu-border);
    }

    .fac-menu.burger-mode {
        display: none !important;
    }

    .fac-menu.burger-mode.active {
        display: flex !important;
        flex-direction: column;
    }

    .fac-mobile-toggle.burger-mode {
        display: block !important;
        position: relative !important;
        background: transparent;
        border: 2px solid #0052a5;
        border-radius: 5px;
        cursor: pointer;
        padding: 0;
        width: 38px;
        height: 38px;
        outline: none;
        flex-shrink: 0;
    }

    .fac-mobile-toggle.burger-mode span {
        display: block;
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2px;
        background-color: #0052a5;
        border-radius: 2px;
        margin-left: -11px;
        transition: all 0.3s ease;
    }

    .fac-mobile-toggle.burger-mode span:nth-child(1) {
        top: 9px;
    }

    .fac-mobile-toggle.burger-mode span:nth-child(2) {
        top: 17px;
    }

    .fac-mobile-toggle.burger-mode span:nth-child(3) {
        top: 25px;
    }

    .fac-mobile-toggle.burger-mode.active span:nth-child(1) {
        top: 17px;
        transform: rotate(45deg);
    }

    .fac-mobile-toggle.burger-mode.active span:nth-child(2) {
        opacity: 0;
    }

    .fac-mobile-toggle.burger-mode.active span:nth-child(3) {
        top: 17px;
        transform: rotate(-45deg);
    }

    /* Пункты меню в одну строку без переноса */
    .fac-menu ul {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px 14px;
        align-items: center;
    }

    .fac-menu ul li {
        width: auto;
        border-bottom: none;
    }

    .fac-menu ul li a,
    .fac-menu ul li .menu-label {
        display: inline-block;
        padding: 4px 0;
        font-size: 12px;
    }

    /* В burger-mode меню показывается вертикально */
    .fac-menu.burger-mode ul {
        flex-direction: column;
        gap: 0;
    }

    .fac-menu.burger-mode ul li {
        width: 100%;
        border-bottom: 1px solid var(--donnu-border);
    }

    .fac-menu.burger-mode ul li a,
    .fac-menu.burger-mode ul li .menu-label {
        display: block;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* --- Большие мониторы --- */
@media (min-width: 1500px) {
    :root {
        --donnu-width: 1500px;
    }

    .container,
    .content-wrapper {
        max-width: 1500px;
    }
}


@media (min-width: 1900px) {
    :root {
        --donnu-width: 1900px;
    }

    .container,
    .content-wrapper {
        max-width: 1900px;
    }
}

/* === News Page Specific Styles === */
.news-page-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.news-page-wrapper .main-content {
    flex: 1;
    min-width: 0;
}

.news-sidebar {
    flex: 0 0 350px;
    width: 350px;
}

/* Sidebar Widget Styling */
.news-sidebar .sidebar-widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
}

.news-sidebar .sidebar-widget h3 {
    background: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    color: #bf1126;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #bf1126;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-sidebar .sidebar-widget h3 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.news-sidebar .sidebar-widget h3 a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.sidebar-item {
    padding: 1rem 1.5rem;
}

.sidebar-item-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.sidebar-item-link:hover {
    text-decoration: none;
}

.sidebar-item-image {
    flex: 0 0 80px;
    width: 80px;
    height: 60px;
    background: #e8eef3;
    overflow: hidden;
}

.sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #191919;
    line-height: 1.3;
}

.sidebar-item-link:hover .sidebar-item-title {
    color: #bf1126;
}

.sidebar-item-date {
    font-size: 0.75rem;
    color: #999;
}

/* Tag Cloud Styling */
.tag-cloud {
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #f6f8fa;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.tag-item:hover {
    background: #0052a5;
    color: #ffffff;
    text-decoration: none;
    border-color: #0052a5;
}

/* Tag size variations */
.tag-item.tag-size-1 {
    font-size: 0.8rem;
}

.tag-item.tag-size-2 {
    font-size: 0.9rem;
}

.tag-item.tag-size-3 {
    font-size: 1rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .content-wrapper,
    .news-page-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-content,
    .news-page-wrapper .main-content {
        flex: none;
        width: 100%;
    }

    .sidebar,
    .news-sidebar {
        flex: none;
        width: 100%;
        max-width: none;
    }

    /* Адаптация пагинации */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    .page-item .page-link {
        padding: 5px 10px;
        font-size: 14px;
    }

    /* Восстановлено правильное обтекание для превью картинок новостей на мобильных */
    .news-page-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .news-sidebar {
        order: 2;
    }

    .news-page-wrapper .main-content {
        order: 1;
    }

    .tag-cloud {
        gap: 0.4rem;
    }

    .tag-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ====================================
   ШАПКА КАФЕДРЫ (dept-*)
   ==================================== */

.dept-header-wrapper {
    background: #fff;
    border-bottom: 3px solid var(--donnu-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 12px 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.dept-header-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 20px;
    gap: 15px;
    flex-shrink: 0;
}

.dept-menu {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.dept-menu > ul {
    flex: 1;
    min-width: 0;
}

.dept-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.dept-separator {
    width: 1px;
    height: 45px;
    background-color: #e0e0e0;
}

/* Лого университета в шапке кафедры */
.dept-univ-logo-wrapper,
.dept-fac-logo-wrapper {
    position: relative;
}

.dept-univ-logo,
.dept-fac-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dept-univ-logo img {
    height: 50px;
    width: auto;
}

.dept-fac-logo img {
    height: 45px;
    width: auto;
}

.dept-fac-logo .fac-name-short {
    font-size: 14px;
    font-weight: 700;
    color: var(--donnu-blue);
    text-transform: uppercase;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.dropdown-arrow {
    font-size: 10px;
    color: #888;
    transition: transform 0.3s ease;
}

/* Выпадающие меню */
.dept-main-menu-dropdown,
.dept-fac-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 3px solid var(--donnu-blue);
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dept-fac-menu-dropdown {
    min-width: 220px;
}

/* Стили для меню факультета внутри dropdown кафедры */
.dept-fac-menu-dropdown ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
}

.dept-fac-menu-dropdown ul li {
    list-style: none !important;
    border-bottom: 1px solid #f0f0f0;
}

.dept-fac-menu-dropdown ul li:last-child {
    border-bottom: none;
}

.dept-fac-menu-dropdown ul li a {
    display: block;
    padding: 15px 20px;
    color: #0052a5;
    text-decoration: none;
    font-size: 16px;
    font-family: Arial, sans-serif;
    white-space: normal;
    transition: background 0.3s ease;
}

.dept-fac-menu-dropdown ul li a:hover {
    background: rgba(0, 82, 165, 0.1);
}

.dept-fac-menu-dropdown ul li.selected a {
    background: rgba(0, 82, 165, 0.1);
    font-weight: 600;
}

/* Подменю кафедр в dropdown факультета */
.dept-fac-menu-dropdown ul li .submenu {
    display: none !important;
    background: #fff;
    margin-left: 15px;
    min-width: auto !important;
}

.dept-fac-menu-dropdown ul li.open .submenu {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.dept-fac-menu-dropdown ul li .submenu li a {
    padding: 12px 20px;
    font-size: 14px;
}

/* Лого и название кафедры */
.dept-local-brand {
    display: flex;
    align-items: center;
}

.dept-home-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.dept-logo-img {
    height: 50px;
    width: auto;
}

.dept-titles h1 {
    font-size: 16px;
    line-height: 1.3;
    color: var(--donnu-dark, #191919);
    margin: 0;
    padding: 0;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 280px;
}

/* Меню кафедры */
.dept-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
}

.dept-menu ul li a {
    text-decoration: none;
    color: var(--donnu-dark, #191919);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 5px 0;
    white-space: nowrap;
}

.dept-menu ul li a:hover,
.dept-menu ul li.selected a {
    color: var(--donnu-blue);
    border-bottom: 2px solid var(--donnu-blue);
}

/* Бургер кафедры скрыт на десктопе */
.dept-mobile-toggle {
    display: none;
}

/* === Глобальный burger-mode кафедры (переполнение — любой экран) === */
.dept-header-wrapper {
    position: relative;
}

.dept-menu.burger-mode {
    display: none !important;
}

.dept-menu.burger-mode.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--donnu-border);
}

/* В burger-mode auth-кнопка видна в dropdown */
.dept-menu.burger-mode .header-auth-inline {
    padding: 12px 20px;
    margin-left: 0;
    border-top: 1px solid var(--donnu-border);
}

.dept-mobile-toggle.burger-mode {
    display: block !important;
    position: relative !important;
    background: transparent;
    border: 2px solid #0052a5;
    border-radius: 5px;
    cursor: pointer;
    padding: 0;
    width: 45px;
    height: 45px;
    outline: none;
    flex-shrink: 0;
}

/* Когда меню кафедры в burger-mode, header-row и header-actions растягиваются */
.dept-header-wrapper:has(.dept-menu.burger-mode) .dept-header-row {
    flex: 1;
}

.dept-header-wrapper:has(.dept-menu.burger-mode) .header-actions {
    flex: 1;
}

.dept-header-wrapper:has(.dept-menu.burger-mode) .dept-mobile-toggle.burger-mode {
    margin-left: auto;
}

.dept-mobile-toggle.burger-mode span {
    display: block;
    position: absolute;
    left: 50%;
    width: 28px;
    height: 3px;
    background-color: #0052a5;
    border-radius: 2px;
    margin-left: -14px;
    transition: all 0.3s ease;
}

.dept-mobile-toggle.burger-mode span:nth-child(1) {
    top: 12px;
}

.dept-mobile-toggle.burger-mode span:nth-child(2) {
    top: 21px;
}

.dept-mobile-toggle.burger-mode span:nth-child(3) {
    top: 30px;
}

.dept-mobile-toggle.burger-mode.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.dept-mobile-toggle.burger-mode.active span:nth-child(2) {
    opacity: 0;
}

.dept-mobile-toggle.burger-mode.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.dept-menu.burger-mode ul {
    flex-direction: column;
    gap: 0;
}

.dept-menu.burger-mode ul li {
    width: 100%;
    border-bottom: 1px solid var(--donnu-border);
}

.dept-menu.burger-mode ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
}

/* === Конец глобального burger-mode кафедры === */

/* === Подменю кафедры (dept-menu) === */
.dept-menu ul li {
    position: relative;
}

.dept-menu ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    min-width: 280px;
    max-width: 380px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--donnu-border);
    border-top: 3px solid var(--donnu-blue);
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.dept-menu ul li.open>.submenu {
    display: flex;
    opacity: 1 !important;
    transform: none !important;
}

.dept-menu ul li .submenu li {
    width: 100%;
    padding: 0;
}

.dept-menu ul li .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    color: #333;
    border-bottom: none;
    white-space: normal;
    line-height: 1.4;
}

.dept-menu ul li .submenu li a:hover {
    background: var(--donnu-gray);
    color: var(--donnu-blue);
}

.dept-menu.burger-mode ul li.has-submenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.dept-menu.burger-mode ul li.has-submenu>a {
    flex: 1;
}

.dept-menu.burger-mode ul li.has-submenu>.submenu-toggle {
    padding: 15px;
    font-size: 14px;
}

.dept-menu.burger-mode ul li .submenu {
    width: 100%;
    position: static !important;
    background: #f5f5f5 !important;
    box-shadow: none !important;
    border: none !important;
    min-width: auto !important;
    max-width: none !important;
    padding-left: 20px !important;
}

/* Секция контактов кафедры */
.dept-contacts-section {
    padding: 1.5rem 0 0;
}

.dept-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Контакты внутри карточки заведующего */
.dean-info .dept-contacts {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

.dept-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 0 0 auto;
}

/* В отдельной секции — с фоном и рамкой */
.dept-contacts-section .dept-contact-item {
    background: #f8f9fa;
    border-left: 3px solid var(--donnu-blue);
    padding: 15px 20px;
    flex: 1 1 200px;
    min-width: 200px;
}

.dept-contact-social {
    flex-basis: 100%;
}

.dept-contact-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.dept-contact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dept-contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.dept-contact-value {
    font-size: 14px;
    color: var(--donnu-dark, #191919);
    word-break: break-word;
}

a.dept-contact-value {
    color: var(--donnu-blue);
    text-decoration: none;
}

a.dept-contact-value:hover {
    text-decoration: underline;
}

.dept-contact-value a {
    color: var(--donnu-blue);
    text-decoration: none;
}

.dept-contact-value a:hover {
    text-decoration: underline;
}

/* Секция описания кафедры */
.dept-about-section {
    padding: 2rem 0;
}

.dept-about-section .dept-content {
    font-size: 1rem;
    line-height: 1.7;
}

.dept-nav-section {
    padding: 1rem 0 3rem;
}

/* === МОБИЛЬНЫЕ СТИЛИ ДЛЯ ШАПКИ КАФЕДРЫ === */
@media (max-width: 992px) {
    .dept-header-row {
        gap: 8px;
    }

    .dept-branding {
        flex: 1;
        min-width: 0;
        justify-content: flex-start;
    }

    .dept-titles h1 {
        font-size: 14px;
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .dept-header-wrapper {
        display: block;
    }

    .dept-header-row {
        padding: 10px 15px;
    }

    .dept-separator {
        display: none;
    }

    .dept-branding {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dept-univ-logo img {
        height: 40px;
    }

    .dept-fac-logo img {
        height: 35px;
    }

    .dept-logo-img {
        height: 40px;
    }

    .dept-titles h1 {
        font-size: 13px;
        max-width: 180px;
    }

    /* Показываем бургер на мобильных */
    .dept-mobile-toggle {
        display: block;
        width: 45px;
        height: 45px;
        background: transparent;
        border: 2px solid #0052a5;
        border-radius: 5px;
        cursor: pointer;
        padding: 0;
        position: relative;
        flex-shrink: 0;
        outline: none;
    }

    .dept-mobile-toggle span {
        display: block;
        position: absolute;
        left: 50%;
        width: 28px;
        height: 3px;
        background: var(--donnu-blue);
        border-radius: 2px;
        margin-left: -14px;
        transition: all 0.3s ease;
    }

    .dept-mobile-toggle span:nth-child(1) {
        top: 12px;
    }

    .dept-mobile-toggle span:nth-child(2) {
        top: 21px;
    }

    .dept-mobile-toggle span:nth-child(3) {
        top: 30px;
    }

    .dept-mobile-toggle.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }

    .dept-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .dept-mobile-toggle.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    /* Скрываем меню по умолчанию */
    .dept-menu {
        display: none;
        width: 100%;
        background: #f8f9fa;
        padding: 15px;
        margin-top: 10px;
    }

    .dept-menu.active {
        display: flex;
        flex-direction: column;
    }

    /* Auth-кнопка в мобильном dropdown кафедры */
    .dept-menu.active .header-auth-inline {
        padding: 12px 20px;
        margin-left: 0;
        border-top: 1px solid var(--donnu-border);
    }

    .dept-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .dept-menu ul li {
        border-bottom: 1px solid #e0e0e0;
    }

    .dept-menu ul li:last-child {
        border-bottom: none;
    }

    .dept-menu ul li a {
        display: block;
        padding: 12px 0;
        font-size: 14px;
    }

    /* Подменю кафедры на мобильных */
    .dept-menu ul li .submenu {
        position: static !important;
        background: #f0f0f0 !important;
        box-shadow: none !important;
        border: none !important;
        min-width: auto !important;
        max-width: none !important;
        padding-left: 15px !important;
    }

    .dept-menu ul li.open>.submenu {
        display: flex !important;
    }

    .dept-menu ul li .submenu li {
        border-bottom: 1px solid #ddd;
    }

    .dept-menu ul li .submenu li:last-child {
        border-bottom: none;
    }

    .dept-menu ul li .submenu li a {
        padding: 10px 0;
        font-size: 13px;
    }

    .dept-header-wrapper {
        position: relative;
    }
}

/* === Ландшафтный режим смартфона: меню кафедры в 2 строки === */
@media (orientation: landscape) and (max-height: 500px) {
    .dept-header-wrapper {
        display: block;
    }

    .dept-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        padding: 8px 15px;
    }

    .dept-separator {
        display: none;
    }

    /* Бургер скрыт по умолчанию — JS включит его если надо */
    .dept-mobile-toggle {
        display: none;
    }

    /* Меню видимо, пункты переносятся на 2 строки */
    .dept-menu {
        display: flex !important;
        flex-wrap: wrap;
        width: 100%;
        padding: 4px 15px 6px;
        background: #fff;
        border-top: 1px solid var(--donnu-border);
        margin-top: 0;
    }

    .dept-menu.burger-mode {
        display: none !important;
    }

    .dept-menu.burger-mode.active {
        display: flex !important;
        flex-direction: column;
    }

    .dept-mobile-toggle.burger-mode {
        display: block !important;
        position: relative !important;
        background: transparent;
        border: 2px solid #0052a5;
        border-radius: 5px;
        cursor: pointer;
        padding: 0;
        width: 38px;
        height: 38px;
        outline: none;
        flex-shrink: 0;
    }

    .dept-mobile-toggle.burger-mode span {
        display: block;
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2px;
        background-color: #0052a5;
        border-radius: 2px;
        margin-left: -11px;
        transition: all 0.3s ease;
    }

    .dept-mobile-toggle.burger-mode span:nth-child(1) {
        top: 9px;
    }

    .dept-mobile-toggle.burger-mode span:nth-child(2) {
        top: 17px;
    }

    .dept-mobile-toggle.burger-mode span:nth-child(3) {
        top: 25px;
    }

    .dept-mobile-toggle.burger-mode.active span:nth-child(1) {
        top: 17px;
        transform: rotate(45deg);
    }

    .dept-mobile-toggle.burger-mode.active span:nth-child(2) {
        opacity: 0;
    }

    .dept-mobile-toggle.burger-mode.active span:nth-child(3) {
        top: 17px;
        transform: rotate(-45deg);
    }

    /* Пункты меню в строку с переносом (2 строки) */
    .dept-menu ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 14px;
        align-items: center;
    }

    .dept-menu ul li {
        width: auto;
        border-bottom: none;
    }

    .dept-menu ul li:last-child {
        border-bottom: none;
    }

    .dept-menu ul li a {
        display: inline-block;
        padding: 4px 0;
        font-size: 12px;
    }

    /* В burger-mode меню показывается вертикально */
    .dept-menu.burger-mode ul {
        flex-direction: column;
        gap: 0;
    }

    .dept-menu.burger-mode ul li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }

    .dept-menu.burger-mode ul li:last-child {
        border-bottom: none;
    }

    .dept-menu.burger-mode ul li a {
        display: block;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* ========================================
   Стили для новых блоков факультетов
   ======================================== */

/* Блок контактной информации */
.faculty-contacts-section {
    padding: 60px 0;
    background: var(--donnu-bg);
}

.faculty-contacts-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.contact-item {
    background: var(--donnu-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--donnu-blue), var(--donnu-red));
    border-radius: 50%;
    color: var(--donnu-white);
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-value {
    font-size: 1rem;
    color: var(--donnu-text);
    word-break: break-word;
}

.contact-value a {
    color: var(--donnu-blue);
    text-decoration: none;
}

.contact-value a:hover {
    color: var(--donnu-red);
    text-decoration: underline;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--donnu-bg);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--donnu-blue);
    color: var(--donnu-white);
    text-decoration: none;
}

/* Блок описания факультета */
.faculty-about-section {
    padding: 60px 0;
}

.faculty-about-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faculty-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--donnu-text);
}

.faculty-description p {
    margin-bottom: 1.5rem;
}

.faculty-description h3,
.faculty-description h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.faculty-description ul,
.faculty-description ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.faculty-description li {
    margin-bottom: 0.5rem;
}

/* Блок полезных ссылок */
.faculty-links-section {
    padding: 60px 0;
    background: var(--donnu-bg);
}

.faculty-links-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.links-content {
    max-width: 900px;
    margin: 0 auto;
}

.links-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.links-content li {
    background: var(--donnu-white);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.links-content li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.links-content a {
    display: block;
    padding: 15px 20px;
    color: var(--donnu-blue);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-left: 40px;
}

.links-content a::before {
    content: "→";
    position: absolute;
    left: 15px;
    color: var(--donnu-red);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.links-content a:hover {
    color: var(--donnu-red);
    text-decoration: none;
}

.links-content a:hover::before {
    transform: translateX(5px);
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {

    .faculty-contacts-section,
    .faculty-about-section,
    .faculty-links-section {
        padding: 40px 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faculty-description {
        font-size: 1rem;
    }

    .links-content ul {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {

    .faculty-contacts-section,
    .faculty-about-section,
    .faculty-links-section {
        padding: 30px 0;
    }

    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .faculty-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* === Шапка подразделения (Division) === */
.div-header-wrapper {
    background: #fff;
    border-bottom: 3px solid var(--donnu-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.div-header-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 20px;
    flex-shrink: 0;
}

.div-menu {
    flex: 1;
    min-width: 0;
}

.div-branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.div-univ-logo-wrapper {
    position: relative;
}

.div-univ-logo img {
    height: 60px;
    width: auto;
}

.div-separator {
    width: 1px;
    height: 50px;
    background-color: var(--donnu-border);
}

.div-local-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.div-local-brand img {
    height: 55px;
    width: auto;
}

.div-titles h1 {
    font-size: 18px;
    line-height: 1.2;
    color: var(--donnu-dark);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
    max-width: 300px;
}

.div-titles span {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Меню подразделения */
.div-menu ul.division-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.div-menu ul.division-menu-list li a {
    text-decoration: none;
    color: var(--donnu-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.div-menu ul.division-menu-list li a:hover,
.div-menu ul.division-menu-list li.selected a {
    color: var(--donnu-blue);
    border-bottom: 2px solid var(--donnu-blue);
}

.div-menu ul.division-menu-list li {
    position: relative;
}

.div-mobile-toggle {
    display: none;
}

.div-menu ul.division-menu-list li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--donnu-border);
    border-top: 3px solid var(--donnu-blue);
    padding: 10px 0;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
}

.div-menu ul.division-menu-list li.open .submenu,
.div-menu ul.division-menu-list li.has-submenu:hover .submenu {
    display: flex;
    opacity: 1 !important;
    transform: none !important;
}

.div-menu ul.division-menu-list li .submenu li {
    width: 100%;
    padding: 0;
}

.div-menu ul.division-menu-list li .submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    color: #333;
    border-bottom: none;
    white-space: normal;
    line-height: 1.4;
}

.div-menu ul.division-menu-list li .submenu li a:hover {
    background: var(--donnu-gray);
    color: var(--donnu-blue);
    border-bottom: none;
}

@media (max-width: 768px) {
    .div-header-wrapper {
        display: block;
    }

    .div-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    .div-branding {
        flex: 1;
        flex-direction: row;
        align-items: center;
        min-width: 0;
    }

    .div-header-wrapper .header-actions {
        order: 2;
        flex-shrink: 0;
    }

    .div-mobile-toggle {
        position: relative !important;
        display: block !important;
        background: transparent;
        border: 2px solid #0052a5;
        border-radius: 5px;
        cursor: pointer;
        padding: 0;
        width: 45px;
        height: 45px;
        outline: none;
    }

    .div-mobile-toggle span {
        display: block;
        position: absolute;
        left: 50%;
        width: 28px;
        height: 3px;
        background-color: #0052a5;
        border-radius: 2px;
        margin-left: -14px;
        transition: all 0.3s ease;
    }

    .div-mobile-toggle span:nth-child(1) {
        top: 12px;
    }

    .div-mobile-toggle span:nth-child(2) {
        top: 21px;
    }

    .div-mobile-toggle span:nth-child(3) {
        top: 30px;
    }

    .div-mobile-toggle.active span:nth-child(1) {
        top: 21px;
        transform: rotate(45deg);
    }

    .div-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .div-mobile-toggle.active span:nth-child(3) {
        top: 21px;
        transform: rotate(-45deg);
    }

    .div-separator {
        display: none;
    }

    .div-menu {
        display: none;
        width: 100%;
        margin-top: 0;
    }

    .div-menu.active {
        display: block !important;
    }

    .div-menu ul.division-menu-list {
        flex-direction: column;
        gap: 0;
    }

    .div-menu ul.division-menu-list li {
        width: 100%;
        border-bottom: 1px solid var(--donnu-border);
    }

    .div-menu ul.division-menu-list li a {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }

    .div-menu ul.division-menu-list li .submenu {
        position: static !important;
        background: #f5f5f5 !important;
        box-shadow: none !important;
        border: none !important;
        min-width: auto !important;
        max-width: none !important;
        padding-left: 20px !important;
    }

    .div-menu ul.division-menu-list li.open .submenu {
        display: flex !important;
    }

    .div-menu ul.division-menu-list li .submenu li {
        border-bottom: 1px solid #e0e0e0;
    }

    .div-menu ul.division-menu-list li .submenu li:last-child {
        border-bottom: none;
    }

    .div-menu ul.division-menu-list li .submenu li a {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* === Ландшафтный режим смартфона: меню в 2 строки === */
/* Landscape-ориентация + высота <= 500px (смартфоны горизонтально) */
@media (orientation: landscape) and (max-height: 500px) {

    /* Шапка: брендинг и меню в колонку */
    .div-header-wrapper {
        display: block;
    }

    .div-header-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        position: relative;
        padding: 8px 15px;
    }

    .div-separator {
        display: none;
    }

    /* Бургер скрыт по умолчанию — JS включит его если надо */
    .div-mobile-toggle {
        display: none;
    }

    /* Меню видимо, пункты переносятся на 2 строки */
    .div-menu {
        display: block !important;
        width: 100%;
        padding: 4px 15px 6px;
        background: #fff;
        border-top: 1px solid var(--donnu-border);
    }

    .div-menu.burger-mode {
        display: none !important;
    }

    .div-menu.burger-mode.active {
        display: block !important;
    }

    .div-mobile-toggle.burger-mode {
        display: block !important;
        position: relative !important;
        background: transparent;
        border: 2px solid #0052a5;
        border-radius: 5px;
        cursor: pointer;
        padding: 0;
        width: 38px;
        height: 38px;
        outline: none;
        flex-shrink: 0;
    }

    .div-mobile-toggle.burger-mode span {
        display: block;
        position: absolute;
        left: 50%;
        width: 22px;
        height: 2px;
        background-color: #0052a5;
        border-radius: 2px;
        margin-left: -11px;
        transition: all 0.3s ease;
    }

    .div-mobile-toggle.burger-mode span:nth-child(1) {
        top: 9px;
    }

    .div-mobile-toggle.burger-mode span:nth-child(2) {
        top: 17px;
    }

    .div-mobile-toggle.burger-mode span:nth-child(3) {
        top: 25px;
    }

    .div-mobile-toggle.burger-mode.active span:nth-child(1) {
        top: 17px;
        transform: rotate(45deg);
    }

    .div-mobile-toggle.burger-mode.active span:nth-child(2) {
        opacity: 0;
    }

    .div-mobile-toggle.burger-mode.active span:nth-child(3) {
        top: 17px;
        transform: rotate(-45deg);
    }

    /* Пункты меню в строку с переносом (2 строки) */
    .div-menu ul.division-menu-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px 14px;
        align-items: center;
    }

    .div-menu ul.division-menu-list li {
        width: auto;
        border-bottom: none;
    }

    .div-menu ul.division-menu-list li a {
        display: inline-block;
        padding: 4px 0;
        font-size: 12px;
    }

    /* В burger-mode меню показывается вертикально */
    .div-menu.burger-mode ul.division-menu-list {
        flex-direction: column;
        gap: 0;
    }

    .div-menu.burger-mode ul.division-menu-list li {
        width: 100%;
        border-bottom: 1px solid var(--donnu-border);
    }

    .div-menu.burger-mode ul.division-menu-list li a {
        display: block;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Социальные иконки в шапке / мобильном меню */
.social-header-icon {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.95;
}
.social-header-icon svg,
.social-header-icon img {
    height: 20px;
    width: auto;
}
.social-header-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Контейнер иконок соцсетей в мобильном/dropdown меню */
.donnu-main-menu-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}

/* Увеличенные иконки в мобильном меню */
.donnu-main-menu-social .social-header-icon svg,
.donnu-main-menu-social .social-header-icon img {
    height: 32px;
}

@media (min-width: 992px) {
    .menu-container .donnu-main-menu-social {
        display: none !important;
    }
}

/* Архивы СМИ о ДонГУ (details/summary) */
.archives-list {
    margin-top: 30px;
    margin-bottom: 30px;
}

.archive-details {
    margin-bottom: 12px;
    border: 1px solid var(--donnu-grey);
    border-radius: 8px;
    background: var(--donnu-white);
    transition: all 0.3s ease;
}

.archive-details:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--donnu-blue);
}

.archive-details summary {
    padding: 14px 20px;
    cursor: pointer;
    font-weight: bold;
    color: var(--donnu-blue);
    background: var(--donnu-bg);
    list-style: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.archive-details[open] summary {
    border-bottom: 1px solid var(--donnu-grey);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.archive-details summary::-webkit-details-marker {
    display: none;
}

.archive-details summary::after {
    content: '▼';
    font-size: 10px;
    color: var(--donnu-blue);
    transition: transform 0.3s ease;
}

.archive-details[open] summary::after {
    transform: rotate(180deg);
}

.archive-details .archive-content {
    padding: 1.5rem;
    background: var(--donnu-white);
}

.archive-content table {
    margin: 0 !important;
}
/* ==============================================
   АККОРДЕОНЫ И МОДАЛЬНЫЕ ОКНА (ДЛЯ МИГРИРОВАННОГО КОНТЕНТА)
   ============================================== */
.bio-modal-link { cursor: pointer; color: #1565c0; text-decoration: underline; font-style: italic; }
.bio-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; justify-content: center; align-items: center; }
.bio-modal-overlay.active { display: flex; }
.bio-modal-box { background: #fff; border-radius: 12px; max-width: 700px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 2em; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.bio-modal-close { position: absolute; top: 12px; right: 16px; font-size: 24px; cursor: pointer; color: #666; border: none; background: none; }
.bio-modal-close:hover { color: #000; }

.sync-accordion { border: 1px solid #d0d7de; border-radius: 8px; margin: 12px 0; overflow: hidden; background: #fff; }
.sync-accordion summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: #1a3a5c; background: #f0f4f8; display: flex; align-items: center; gap: 8px; list-style: none; user-select: none; }
.sync-accordion summary::-webkit-details-marker { display: none; }
.sync-accordion summary::before { content: "▶"; font-size: 11px; transition: transform .25s; flex-shrink: 0; }
.sync-accordion[open] summary::before { transform: rotate(90deg); }
.sync-accordion summary:hover { background: #dde5ef; }
.sync-accordion__body { padding: 12px 16px; border-top: 1px solid #d0d7de; animation: accordion-in .2s ease; }
@keyframes accordion-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sync-attachments { margin: 20px 0; padding: 16px 20px; background: #f8f9fa; border: 1px solid #d0d7de; border-radius: 8px; }
.sync-attachments h4 { margin: 0 0 10px; color: #1a3a5c; font-size: 1em; }
.sync-attachments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sync-attachments__list li a { color: #1565c0; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.sync-attachments__list li a:hover { text-decoration: underline; }

/* Section Index Cards */
.section-index-grid {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.section-index-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 52, 115, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    color: #333;
}

.section-index-card:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 52, 115, 0.15);
    border-color: rgba(0, 52, 115, 0.3);
    color: #003473; /* University primary color assumed for hover */
}

.section-index-card .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    color: currentColor;
    transition: color 0.3s ease;
}

.section-index-card .card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 52, 115, 0.05);
    color: #003473;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.section-index-card:hover .card-arrow {
    background: #003473;
    color: #ffffff;
    transform: translateX(5px);
}

/* Исправление отображения меню на мобильных устройствах (перенос строк и ограничение ширины) */
@media (max-width: 768px) {
    /* Сброс white-space для предотвращения горизонтального скролла */
    .fac-menu ul li a,
    .fac-menu ul li .menu-label,
    .fac-menu.burger-mode ul li a,
    .fac-menu.burger-mode ul li .menu-label,
    .dept-menu ul li a,
    .dept-menu.burger-mode ul li a,
    .div-menu ul.division-menu-list li a,
    .div-menu.burger-mode ul.division-menu-list li a {
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }

    /* Ограничение ширины меню и списков */
    .fac-menu,
    .fac-menu.burger-mode,
    .dept-menu,
    .dept-menu.burger-mode,
    .div-menu,
    .div-menu.burger-mode {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .fac-menu ul,
    .fac-menu.burger-mode ul,
    .dept-menu ul,
    .dept-menu.burger-mode ul,
    .div-menu ul.division-menu-list,
    .div-menu.burger-mode ul.division-menu-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .fac-menu ul li,
    .fac-menu.burger-mode ul li,
    .dept-menu ul li,
    .dept-menu.burger-mode ul li,
    .div-menu ul.division-menu-list li,
    .div-menu.burger-mode ul.division-menu-list li {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Плашка срочных сообщений */
.urgent-message-banner {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1005; /* Над меню и шапкой */
}
.urgent-message-container {
    max-width: var(--donnu-width, 100%);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
}
.urgent-message-link, .urgent-message-content {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}
.urgent-message-link:hover {
    color: #ffd54f;
    text-decoration: none;
}
.urgent-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.urgent-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}
@media (max-width: 768px) {
    .urgent-text {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.3;
    }
}

/* End */
/* /local/templates/dongu/css/landing.css?177502843442166 */
/* /local/templates/dongu/components/bitrix/menu/donnu_main_menu/style.css?178012083221419 */
/* /local/templates/dongu/components/bitrix/search.title/dongu/style.css?17721342996085 */
/* /local/templates/dongu/template_styles.css?178098088996913 */
