/* Основные стили для всего сайта */
:root {
    --primary-color: #1a4d8c;
    --secondary-color: #e63946;
    --accent-color: #2a9d8f;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка сайта */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.main-header {
    padding: 20px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--dark-color);
}

.logo-img {
    height: 70px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.logo-sub {
    font-size: 1rem;
    color: var(--gray-color);
}

nav {
    margin-top: 15px;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Заголовок страницы */
.page-header {
    background: linear-gradient(rgba(26, 77, 140, 0.85), rgba(26, 77, 140, 0.9)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumb li {
    margin: 0 5px;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb .current {
    color: white;
    font-weight: 600;
}

/* Основное содержимое */
main {
    flex: 1;
    padding: 40px 0;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
}

/* Карточки новостей */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.news-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}

.news-excerpt {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-color);
}

/* Секции контента */
.content-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.page-link.active, .page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.page-link.dots {
    background-color: transparent;
    box-shadow: none;
}

/* Подвал сайта */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-about {
    color: #adb5bd;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.contact-icon {
    color: var(--accent-color);
    margin-top: 3px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-links a {
    color: #adb5bd;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #495057;
    transition: var(--transition);
}

.footer-social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

table tr:hover {
    background-color: var(--light-gray);
}

/* Списки */
.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-list li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: white;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.info-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 20px;
    }
}
/* Стили для кликабельных контактов */
.contact-info a.contact-item {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.contact-info a.contact-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-info a.contact-item:active {
    transform: translateY(0);
}

/* Для телефона - специальный стиль при нажатии на мобильных */
a[href^="tel:"] {
    cursor: pointer;
}

/* Для email - подчеркивание при наведении */
a[href^="mailto:"]:hover span {
    text-decoration: underline;
}
/* Стили для кликабельных контактов в подвале */
.footer-contact .contact-list a.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    margin-left: -10px;
}

.footer-contact .contact-list a.contact-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.footer-contact .contact-list a.contact-link:hover span {
    text-decoration: underline;
}

.footer-contact .contact-list .non-clickable {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #adb5bd;
    margin-bottom: 15px;
    padding: 5px 0;
}

/* Специальные стили для email */
.footer-contact a[href^="mailto:"]:hover .contact-icon {
    color: var(--accent-color);
}

/* Специальные стили для телефона */
.footer-contact a[href^="tel:"]:hover .contact-icon {
    color: #4CAF50; /* Зеленый для телефона */
}

/* Специальные стили для адреса */
.footer-contact a[href*="maps"]:hover .contact-icon {
    color: #FF5722; /* Оранжевый для карт */
}

/* Для мобильных устройств - увеличение области нажатия */
@media (max-width: 768px) {
    .footer-contact .contact-list a.contact-link {
        padding: 10px;
        margin-left: -10px;
    }
}
/* Стили для страницы "Образование" */

/* Список образовательных программ */
.programs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.program-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.program-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Сетка кафедр */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.department-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.department-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.department-card p {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Выделенная секция */
.highlight-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

/* Контактные данные */
.contact-details p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
}
/* Стили для ссылок на кафедры в структуре */
.department-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.department-link:hover {
    color: var(--accent-color);
}

.department-link:hover .department-name {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Стили для блока деканатов */
.deanery-section {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
}

.deanery-section:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.deanery-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.deanery-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-block {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 10px;
}

.location-header h5 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.staff-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.staff-member {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.staff-member:last-child {
    border-bottom: none;
}

.staff-name {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 220px;
}

.staff-position {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.contacts-block {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-icon-small {
    color: var(--accent-color);
    width: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-row a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-row a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .deanery-section {
        padding: 20px;
    }
    
    .location-block, .contacts-block {
        padding: 15px;
    }
    
    .staff-member {
        flex-direction: column;
        gap: 3px;
    }
    
    .staff-name {
        min-width: auto;
    }
    
    .deanery-title {
        font-size: 1.1rem;
    }
    
    .location-header h5 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .deanery-section {
        padding: 15px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 5px;
    }
}
/* Стили для трехколоночной структуры */
.faculty-structure.three-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Общие стили для карточек деканатов */
.deanery-card {
    display: flex;
    flex-direction: column;
}

.deanery-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.deanery-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.deanery-subtitle h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Стили для списка сотрудников в компактном виде */
.staff-list-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.staff-member-compact {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.staff-name-compact {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.staff-position-compact {
    color: var(--gray-color);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Стили для контактов деканата */
.deanery-contacts {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.contact-item-compact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.contact-item-compact:last-child {
    margin-bottom: 0;
}

.contact-item-compact i {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item-compact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item-compact a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Адаптивность для трех колонок */
@media (max-width: 1200px) {
    .faculty-structure.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deanery-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .faculty-structure.three-columns {
        grid-template-columns: 1fr;
    }
    
    .deanery-card:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .deanery-subtitle {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .contact-item-compact {
        flex-direction: column;
        gap: 5px;
    }
    
    .staff-member-compact {
        padding: 10px;
    }
}

/* Стили для ссылок на кафедры (дополнение к существующим) */
.departments-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.department-link {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.department-link:hover {
    color: var(--accent-color);
}

.department-link:hover .department-name {
    color: var(--accent-color);
    text-decoration: underline;
}
/* Стили для учебно-научных подразделений */
.lab-head {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Адаптивность для длинных названий лабораторий */
@media (max-width: 1200px) {
    .departments-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .department-head, .lab-head {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .lab-head {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
}
/* Стили для полезных ссылок в подвале - добавляем в существующий тег <style> */
.footer-links ul li a i.fa-external-link-alt {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-right: 8px;
}

/* Адаптивность для 4-х колонок в подвале */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .footer-links ul li a {
        font-size: 0.9rem;
        padding: 5px 0;
    }
}
/* Добавить в CSS для лучшего отображения фотографий */
.gallery-item img, .modal-gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.modal-gallery-item img {
    cursor: pointer;
}

.modal-gallery-item:hover img {
    transform: scale(1.05);
}

/* Добавить обработку ошибок загрузки изображений */
.gallery-item img.error, .modal-gallery-item img.error {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
}

.gallery-item img.error::after, .modal-gallery-item img.error::after {
    content: "Фото не загружено";
}
/* Дополнительные стили для страницы контактов */
.contact-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-details {
    margin-bottom: 20px;
    flex-grow: 1;
}

.contact-details p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.contact-details strong {
    color: #2c3e50;
    min-width: 80px;
    display: inline-block;
}

.contact-description {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 15px 0;
    font-style: italic;
}

.contact-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.transport-info {
    margin-top: 15px;
}

.transport-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-method {
    transition: background-color 0.3s ease;
}

.contact-method:hover {
    background-color: #e9ecef !important;
}

.contact-info-item {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.contact-info-item h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1rem;
}

.department-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.department-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-card p {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Адаптивность для страницы контактов */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .transport-info {
        padding: 10px;
    }
}
/* ===== Стили для подвала ===== */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo:hover {
    color: #3498db;
}

.footer-about-text {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #bdc3c7;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: #3498db;
    transform: translateX(5px);
}

.footer-nav a i {
    font-size: 0.8rem;
    color: #3498db;
}

/* Стили для блока контактов в подвале */
.contact-info-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item-footer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon-footer {
    width: 40px;
    height: 40px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-footer i {
    color: #3498db;
    font-size: 1rem;
}

.contact-text-footer {
    flex: 1;
}

.contact-text-footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-text-footer a,
.contact-text-footer .non-clickable-text p {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    display: block;
    transition: color 0.3s ease;
}

.contact-text-footer a:hover {
    color: #3498db;
}

.contact-text-footer .non-clickable-text p {
    margin: 0;
    padding: 0;
}

/* Стили для нижней части подвала */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright a {
    color: #3498db;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.copyright-contacts {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Адаптивность подвала */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .copyright-contacts {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .contact-item-footer {
        gap: 10px;
    }
    
    .contact-icon-footer {
        width: 35px;
        height: 35px;
    }
}
/* Для планшетов и ниже */
@media (max-width: 992px) {
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu li {
        margin: 5px;
    }
}

/* Для мобильных */
@media (max-width: 600px) {
    /* Меню скрываем и показываем гамбургер (если реализуете) */
    .nav-menu {
        display: none; /* скрываем обычное меню */
    }
    .menu-toggle {
        display: block; /* иконка гамбургера */
    }

    /* Сетки в одну колонку */
    .content-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Блок директора */
    .content-section[style*="background-color"] > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Новости */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* Верхняя панель */
    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    .contact-item span {
        font-size: 14px; /* можно уменьшить шрифт */
    }

    /* Футер */
    .footer-content {
        grid-template-columns: 1fr !important; /* если там сетка */
        gap: 30px;
    }

    /* Контейнер */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Карточки */
    .feature-card {
        padding: 20px;
    }
}