/**
 * Modern Styles for Department Pages
 * Дневное и заочное отделения - современный дизайн
 */

/* ===== HERO SECTIONS ===== */
.stud-hero {
    background: linear-gradient(135deg, #8B7EC8 0%, #B8E6B8 50%, #FFB6C1 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stud-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.zaoch-hero {
    background: linear-gradient(135deg, #6B5B9A 0%, #9CD69C 50%, #FF9AAC 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.zaoch-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

/* Hero sections для других страниц */
.abut-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.abut-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.news-hero {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.kol-hero {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ff9a9e 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.kol-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.spec-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.spec-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.error-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #ff3742 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.kontrol-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.kontrol-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.ymk-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.ymk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

/* ===== HERO CONTENT ===== */
.stud-hero .hero-content,
.zaoch-hero .hero-content,
.abut-hero .hero-content,
.news-hero .hero-content,
.kol-hero .hero-content,
.search-hero .hero-content,
.spec-hero .hero-content,
.error-hero .hero-content,
.kontrol-hero .hero-content,
.ymk-hero .hero-content {
    position: relative;
    z-index: 10;
}

/* Hero Icons - отдельные элементы для эмодзи */
.hero-icon {
    font-size: 1.8rem !important;
    margin-right: 10px !important;
    display: inline-block !important;
    position: relative !important;
    z-index: 999 !important;
    text-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    opacity: 1 !important;
    animation: bounceIn 1s ease-out;
    vertical-align: middle !important;
    line-height: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    color: inherit !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;
    font-weight: normal !important;
    font-style: normal !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* На мобильных устройствах делаем эмодзи чуть меньше */
@media (max-width: 768px) {
    .hero-icon {
        font-size: 1.5rem !important;
        margin-right: 8px !important;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stud-hero .hero-title,
.zaoch-hero .hero-title,
.abut-hero .hero-title,
.news-hero .hero-title,
.kol-hero .hero-title,
.search-hero .hero-title,
.spec-hero .hero-title,
.error-hero .hero-title,
.kontrol-hero .hero-title,
.ymk-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1F2937;
    /* Убрали text-shadow который создавал размытие */
}

.stud-hero .hero-subtitle,
.zaoch-hero .hero-subtitle,
.abut-hero .hero-subtitle,
.news-hero .hero-subtitle,
.kol-hero .hero-subtitle,
.search-hero .hero-subtitle,
.spec-hero .hero-subtitle,
.error-hero .hero-subtitle,
.kontrol-hero .hero-subtitle,
.ymk-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #6B7280;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* УДАЛЕНО - глобальные стили hero перенесены в специфичные селекторы выше */

/* ===== НОВЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ ===== */

/* Downloads section */
.downloads-section {
    margin-bottom: 2rem;
}

.download-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.download-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.download-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.download-content p {
    color: #6B7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

/* History content */
.history-content {
    position: relative;
}

.history-text {
    position: relative;
}

.history-image {
    float: left;
    margin: 0 30px 20px 0;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.history-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.history-image:hover img {
    transform: scale(1.05);
}

/* Specialties grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.specialty-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.specialty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.specialty-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 15px;
    line-height: 1.3;
}

.qualification {
    color: #6B7280;
    font-style: italic;
}

.qualification strong {
    color: #8B5CF6;
    font-weight: 700;
}

/* Search page styles */
.search-results {
    margin-top: 30px;
}

.search-input {
    padding: 15px 20px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Error page styles */
.error-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.error-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
    line-height: 1;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
}

.error-message {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 40px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.error-btn.primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
}

.error-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
    color: white;
    text-decoration: none;
}

.error-btn.secondary {
    background: transparent;
    color: #6B7280;
    border-color: #6B7280;
}

.error-btn.secondary:hover {
    background: #6B7280;
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Kontrol page styles */
.kontrol-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.kontrol-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

/* Specialty tabs */
.specialty-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 92, 246, 0.2);
    color: #6B7280;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    outline: none;
}

.tab-btn:hover,
.tab-btn.active {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Files grid */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.group-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.group-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.1);
}

.group-icon {
    font-size: 2rem;
    color: #8B5CF6;
}

.group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.group-subtitle {
    font-size: 0.9rem;
    color: #6B7280;
    margin: 0;
}

.files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.file-icon {
    color: #8B5CF6;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.file-link {
    flex: 1;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.file-link:hover {
    color: #8B5CF6;
    text-decoration: none;
}

.file-size {
    font-size: 0.85rem;
    color: #6B7280;
    font-weight: 600;
}

.download-btn-small {
    background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* YMK page styles */
.ymk-hero {
    background: linear-gradient(135deg, #48bb78 0%, #38b2ac 50%, #4299e1 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.ymk-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    /* Убрали backdrop-filter который мог влиять на читаемость текста */
}

.ymk-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.ymk-section-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ymk-section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ymk-section-header {
    background: linear-gradient(135deg, #48bb78 0%, #38b2ac 100%);
    color: white;
    padding: 20px 25px;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ymk-section-header:hover {
    background: linear-gradient(135deg, #38a169 0%, #319795 100%);
}

.ymk-section-icon {
    font-size: 1.5rem;
}

.ymk-section-content {
    padding: 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.ymk-section-content.open {
    max-height: 500px;
    padding: 25px;
}

.ymk-materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ymk-material-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(72, 187, 120, 0.1);
    transition: all 0.3s ease;
}

.ymk-material-item:last-child {
    border-bottom: none;
}

.ymk-material-item:hover {
    background: rgba(72, 187, 120, 0.05);
    border-radius: 8px;
    padding-left: 15px;
    padding-right: 15px;
}

.ymk-material-icon {
    color: #48bb78;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.ymk-material-link {
    flex: 1;
    color: #2D3748;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.ymk-material-link:hover {
    color: #48bb78;
    text-decoration: none;
}

.ymk-toggle-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
}

.ymk-toggle-icon.open {
    transform: rotate(180deg);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #3A3448;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #8B7EC8, #B8E6B8);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #7A7488;
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.photo-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(139, 126, 200, 0.15);
    transition: all 0.3s ease;
    height: 250px;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(139, 126, 200, 0.25);
}

.photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 126, 200, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-link {
    color: white;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-link i {
    font-size: 2rem;
}

/* ===== DEPARTMENTS GRID ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.department-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 126, 200, 0.2);
    box-shadow: 0 8px 30px rgba(139, 126, 200, 0.1);
    transition: all 0.3s ease;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 126, 200, 0.2);
    border-color: rgba(139, 126, 200, 0.4);
}

.department-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 126, 200, 0.1);
}

.department-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B7EC8, #B8E6B8);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(139, 126, 200, 0.3);
}

.department-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3A3448;
    margin: 0;
}

.manager-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5A5468;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #7A7488;
}

.contact-item i {
    color: #8B7EC8;
    width: 16px;
}

.groups-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #5A5468;
    margin-bottom: 0.75rem;
}

.groups-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.group-tag {
    background: linear-gradient(135deg, #8B7EC8, #A8A4D8);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(139, 126, 200, 0.3);
    transition: all 0.2s ease;
}

.group-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 126, 200, 0.4);
}

/* ===== WORK SCHEDULE ===== */
.work-schedule-card {
    background: linear-gradient(135deg, rgba(139, 126, 200, 0.1), rgba(184, 230, 184, 0.1));
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 126, 200, 0.2);
    margin-top: 2rem;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.schedule-header i {
    font-size: 2rem;
    color: #8B7EC8;
}

.schedule-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3A3448;
    margin: 0;
}

.schedule-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 126, 200, 0.1);
}

.schedule-days {
    font-weight: 600;
    color: #5A5468;
}

.schedule-time {
    font-weight: 700;
    color: #8B7EC8;
}

.schedule-break {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 182, 193, 0.2);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.break-label {
    font-weight: 600;
    color: #5A5468;
}

.break-time {
    font-weight: 700;
    color: #FF9AAC;
}

/* ===== ZAOCH SPECIFIC STYLES ===== */
.zaoch-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.staff-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 126, 200, 0.2);
    box-shadow: 0 8px 30px rgba(139, 126, 200, 0.1);
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 126, 200, 0.2);
}

.manager-card {
    border-left: 5px solid #8B7EC8;
}

.methodist-card {
    border-left: 5px solid #B8E6B8;
}

.staff-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(139, 126, 200, 0.1);
}

.staff-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B7EC8, #B8E6B8);
    border-radius: 15px;
}

.work-time h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #5A5468;
    margin-bottom: 0.75rem;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ===== RESPONSIBILITIES ===== */
.responsibilities-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 126, 200, 0.2);
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.responsibility-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(139, 126, 200, 0.1);
    transition: all 0.3s ease;
}

.responsibility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 126, 200, 0.15);
}

.responsibility-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.responsibility-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3A3448;
    margin-bottom: 0.75rem;
}

.responsibility-item p {
    color: #7A7488;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== QUICK LINKS ===== */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(139, 126, 200, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 126, 200, 0.1), transparent);
    transition: left 0.5s ease;
}

.quick-link-card:hover::before {
    left: 100%;
}

.quick-link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 126, 200, 0.2);
    text-decoration: none;
    color: inherit;
}

.quick-link-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.quick-link-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3A3448;
    margin-bottom: 0.75rem;
    text-align: center;
}

.quick-link-card p {
    color: #7A7488;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.quick-link-arrow {
    text-align: center;
    color: #8B7EC8;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-arrow {
    transform: translateX(5px);
}

/* ===== DOCUMENTS SECTION ===== */
.documents-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.document-category h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3A3448;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(139, 126, 200, 0.2);
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.document-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(139, 126, 200, 0.1);
    text-decoration: none;
    color: #5A5468;
    transition: all 0.3s ease;
}

.document-link:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(139, 126, 200, 0.15);
    background: rgba(139, 126, 200, 0.05);
    color: #3A3448;
    text-decoration: none;
}

.document-link.important {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.2), rgba(255, 182, 193, 0.1));
    border-color: rgba(255, 182, 193, 0.3);
}

.document-link.important:hover {
    background: rgba(255, 182, 193, 0.15);
}

.document-link i:first-child {
    color: #8B7EC8;
    font-size: 1.2rem;
    width: 20px;
}

.document-link span {
    flex: 1;
    line-height: 1.4;
}

.document-link i:last-child {
    color: #B8E6B8;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.document-link:hover i:last-child {
    opacity: 1;
    transform: translateX(5px);
}

/* ===== NOTE CARDS ===== */
.note-card {
    background: rgba(184, 230, 184, 0.2);
    border: 1px solid rgba(184, 230, 184, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.note-card.important-note {
    background: rgba(255, 182, 193, 0.2);
    border-color: rgba(255, 182, 193, 0.3);
}

.note-card i {
    color: #8B7EC8;
    font-size: 1.5rem;
}

.note-card p, .note-card h3 {
    margin: 0;
    color: #3A3448;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 1rem;
    }
    
    .departments-grid,
    .zaoch-staff-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-gallery-modern {
        grid-template-columns: 1fr;
    }
    
    .responsibilities-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-content {
        grid-template-columns: 1fr;
    }
    
    .schedule-break {
        grid-column: 1;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .content-section {
        margin-bottom: 2.5rem;
    }
    
    .department-card,
    .staff-card {
        padding: 1.5rem;
    }
    
    .department-header,
    .staff-header {
        flex-direction: column;
        text-align: center;
    }
    
    .groups-tags {
        justify-content: center;
    }
}

/* ===== СТИЛИ ДЛЯ МЕЛКИХ СТРАНИЦ УЧАЩИХСЯ ===== */

/* Стили для мелких страниц учащихся */
.dis-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
    position: relative;
    overflow: hidden;
}

.dis-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.byx-hero {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    position: relative;
    overflow: hidden;
}

.byx-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.best-hero {
    background: linear-gradient(135deg, #ffb74d 0%, #ffa726 100%);
    position: relative;
    overflow: hidden;
}

.best-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.ychm-hero {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    position: relative;
    overflow: hidden;
}

.ychm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.debug-hero {
    background: linear-gradient(135deg, #37474f 0%, #546e7a 100%);
    position: relative;
    overflow: hidden;
}

.debug-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.passcontr-hero {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    position: relative;
    overflow: hidden;
}

.passcontr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Общие стили для hero секций новых страниц */
.dis-hero .hero-title,
.byx-hero .hero-title,
.best-hero .hero-title,
.ychm-hero .hero-title,
.debug-hero .hero-title,
.passcontr-hero .hero-title {
    color: #1F2937 !important;
    text-shadow: none !important;
}

.dis-hero .hero-subtitle,
.byx-hero .hero-subtitle,
.best-hero .hero-subtitle,
.ychm-hero .hero-subtitle,
.debug-hero .hero-subtitle,
.passcontr-hero .hero-subtitle {
    color: #6B7280 !important;
}

/* Стили для файловых карточек */
.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.file-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e5e7eb;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.file-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: white;
}

.file-icon.pdf {
    background: #dc2626;
}

.file-icon.doc {
    background: #2563eb;
}

.file-icon.archive {
    background: #7c3aed;
}

.file-info h5 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.file-info p {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.file-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.file-download:hover {
    background: var(--primary-color-dark);
    color: white;
    text-decoration: none;
}

.file-download i {
    margin-right: 8px;
}

/* Стили для экстренных контактов */
.emergency-contacts {
    margin-bottom: 20px;
}

.emergency-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.emergency-badge {
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    margin-right: 15px;
    min-width: 80px;
    text-align: center;
}

.emergency-number {
    font-weight: 700;
    font-size: 16px;
    color: #1f2937;
}

.help-contacts p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

/* Стили для таблиц сотрудников */
.staff-table {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.staff-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.staff-row:last-child {
    border-bottom: none;
}

.staff-row.header {
    background: #f9fafb;
    font-weight: 600;
}

.staff-row div {
    padding: 12px 16px;
    font-size: 14px;
}

.schedule-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.schedule-info h5 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.schedule-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Стили для платежных карточек */
.payment-section {
    margin-top: 40px;
}

.payment-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
}

.payment-card h5 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-weight: 600;
}

.price-tag {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.payment-schedule {
    space-y: 10px;
}

.payment-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.payment-period:last-child {
    border-bottom: none;
}

.deadline {
    font-weight: 600;
    color: #dc2626;
    font-size: 14px;
}

.period {
    color: #6b7280;
    font-size: 14px;
}

/* Стили для галереи фотографий */
.photos-gallery {
    margin-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.image-container {
    position: relative;
    aspect-ratio: 16/12;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-container:hover .gallery-image {
    transform: scale(1.1);
}

.zoom-btn {
    background: white;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.zoom-btn:hover {
    transform: scale(1.1);
    color: var(--primary-color);
    text-decoration: none;
}

.image-caption {
    padding: 15px;
    text-align: center;
}

.image-caption h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* Стили для отладочной страницы */
.debug-table {
    width: 100%;
}

.debug-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.debug-row:last-child {
    border-bottom: none;
}

.debug-label {
    font-weight: 600;
    color: #374151;
    flex: 1;
}

.debug-value {
    font-family: 'Courier New', monospace;
    color: #1f2937;
    background: #f9fafb;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
}

/* Стили для страницы авторизации */
.auth-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.auth-title {
    text-align: center;
    margin-bottom: 10px;
    color: #1f2937;
    font-weight: 600;
}

.auth-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 14px;
}

.auth-form {
    margin-top: 20px;
}

.materials-panel {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.materials-title {
    color: #1f2937;
    margin-bottom: 20px;
    font-weight: 600;
}

.group-panel {
    margin-bottom: 20px;
}

.group-badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.lectures-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.lectures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.lecture-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.lecture-item:hover {
    background: #f1f5f9;
}

.lecture-item i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

.lecture-item span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

/* Стиль для пустого состояния */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
}

.empty-state p {
    font-size: 16px;
    color: #6b7280;
} 