/* ================ ОСНОВНЫЕ СТИЛИ ================ */
body {
    margin: 0;
    padding: 0;
    background: #121214;
    font-family: "Montserrat Alternates", sans-serif;
    box-sizing: border-box;
}

/* Стили для плашки онлайна */
.online-badge {
    display: inline-block;
    background: rgba(106, 156, 45, 0.2);
    color: #b1ed49;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    border: 1px solid #6A9C2D;
    transition: all 0.3s ease;
}

.online-badge:hover {
    background: rgba(106, 156, 45, 0.3);
    box-shadow: 0 0 6px rgba(166, 243, 39, 0.4);
}


/* ================ ОБЩИЕ СТИЛИ САЙДБАРА ================ */
.sidebar {
    position: fixed;
    width: 285px;
    left: 10px;
    background: #121214;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1000;
    max-height: 90vh;
}

.sidebar-container {
    position: fixed;
    top: 0px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, scale 0.4s ease;
    will-change: transform, opacity, scale;
}

/* ================ ШАПКА САЙДБАРА ================ */
.sidebar-header {
    position: relative;
    padding: 0 16px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #2a2a2e;
}

.sidebar-header-2 {
    position: relative;
    padding: 0 16px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #2a2a2e;
}

/* ================ ЛОГОТИП И ЗАГОЛОВКИ ================ */
.ems-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ems-icon {
    color: #b1ed49;
    font-size: 42px;
    filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.4));
    flex-shrink: 0;
}

.ems-icon-2 {
    color: #b1ed49;
    font-size: 32px;
    filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.4));
    flex-shrink: 0;
}

.ems-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ems-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.ems-main-2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.ems-sub {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #b1ed49;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ================ МЕНЮ САЙДБАРА ================ */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 0 16px;
    flex-grow: 1;
}

.sidebar-item {
    color: #a0a0a7;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
}

.menu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item .icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    margin-right: 14px;
    color: #b1ed49;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================ ЭФФЕКТЫ НАВЕДЕНИЯ ================ */
.sidebar-item:hover {
    background: #1e1e22;
    color: #ffffff;
}

.sidebar-item:hover .icon {
    color: #d4ff6b;
    filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.6));
}

/* ================ АКТИВНЫЕ ЭЛЕМЕНТЫ ================ */
.sidebar-item.active {
    background: #6A9C2D;
    color: #ffffff;
}

.sidebar-item.active .icon {
    color: #ffffff;
}

/* ================ ПОЛОСА ПРОКРУТКИ ================ */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #1e1e22;
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #b1ed49;
    border-radius: 2px;
}

/* ================ ПОЗИЦИОНИРОВАНИЕ САЙДБАРОВ (ДЕСКТОП) ================ */
.main-sidebar {
    top: 20px;
}

.info-sidebar {
    top: 545px;
}

/* Анимации для основного сайдбара */
.main-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transform-origin: left center;
}

.main-item .icon {
    transition: all 0.3s ease;
    transform-origin: center;
}

.main-item .menu-text {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.main-item .pulse-dot {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #b1ed49;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(177, 237, 73, 0.4);
}

/* Эффекты при наведении */
.main-item:hover {
    background: #1e1e22;
}

.main-item:hover .icon {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 0 6px rgba(166, 243, 39, 0.7));
}

.main-item:hover .menu-text {
    transform: translateX(5px);
}

.main-item:hover .pulse-dot {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

/* Активное состояние */
.main-item.active {
    background: linear-gradient(90deg, rgba(106, 156, 45, 0.2) 0%, rgba(106, 156, 45, 0.1) 100%);
    border-left: 3px solid #b1ed49;
}

.main-item.active .icon {
    color: #ffffff;
}

.main-item.active .menu-text {
    font-weight: 600;
    color: #ffffff;
    transform: translateX(8px);
}

.main-item.active .pulse-dot {
    opacity: 1;
    width: 8px;
    height: 8px;
    right: 13px;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    animation: none;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(177, 237, 73, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(177, 237, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(177, 237, 73, 0);
    }
}

/* Анимация переключения */
@keyframes switchBounce {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
}

.main-item.active {
    animation: switchBounce 0.6s ease;
}

/* ================ MAIN WRAPPER ================ */
.main-wrapper {
    margin-left: 305px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    transition: margin 0.3s ease;
}

/* ================ SCHEDULE CONTAINER ================ */
.schedule-container {
    background: #121214;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: 100%;
    margin-bottom: 20px;
}

/* ================ SCHEDULE HEADER ================ */
.schedule-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2e;
}

.header-icon {
    width: 42px;
    height: 42px;
    background: rgba(177, 237, 73, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.header-icon i {
    color: #b1ed49;
    font-size: 18px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 1px;
}

.header-sub {
    font-size: 13px;
    color: #a0a0a7;
    margin-top: 2px;
}

/* ================ SCHEDULE GRID ================ */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.schedule-card {
    background: #1e1e22;
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.schedule-card:hover {
    border-color: #b1ed49;
    transform: translateY(-2px);
}

.card-day {
    font-weight: 500;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2e;
}

.card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-department {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #ffffff;
}

.card-department i {
    color: #b1ed49;
    font-size: 16px;
}

.card-time {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: #b1ed49;
    font-size: 18px;
}

.card-task {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a0a0a7;
    padding-top: 10px;
    border-top: 1px solid #2a2a2e;
}

.card-task i {
    color: #b1ed49;
    font-size: 14px;
}

/* ================ Стили для карточки текущего дня ================ */
.schedule-card.current-day {
    position: relative;
    background: rgba(177, 237, 73, 0.03);
    border-color: #b1ed49;
}

.schedule-card.current-day .card-day {
    color: #b1ed49;
    font-weight: 600;
}

.schedule-card.current-day::before {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: #b1ed49;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(177, 237, 73, 0.7);
    animation: pulse 2s infinite;
    z-index: 1;
}

.schedule-card.current-day:hover {
    transform: none;
    border-color: #b1ed49;
}

/* ================ ДАТА ПРОВЕРКИ И ПРОСРОЧКИ ================ */
.expiration-date {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #2a2a2e;
    font-size: 12px;
    color: #a0a0a7;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.check-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.check-date i {
    color: #4a90e2;
    font-size: 12px;
}

.check-date span {
    color: #a0a0a7;
}

.expiration-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.expiration-status i {
    color: #ff6b6b;
    font-size: 12px;
}

.expiration-date.warning {
    color: #ff9e6b;
}

.expiration-date.expired {
    color: #ff6b6b;
    font-weight: 500;
}

/* ================ INFO CONTAINER ================ */
.info-container {
    background: #121214;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    max-width: 100%;
    margin-top: 20px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2a2e;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: rgba(177, 237, 73, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.info-icon i {
    color: #b1ed49;
    font-size: 16px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 1px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #a0a0a7;
    font-size: 14px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.info-list li i {
    color: #b1ed49;
    font-size: 12px;
    margin-top: 4px;
}

.info-list li:last-child {
    margin-bottom: 0;
}

/* ================ АНИМАЦИЯ ПУЛЬСАЦИИ ================ */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(177, 237, 73, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(177, 237, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(177, 237, 73, 0);
    }
}

.contact-footer {
    position: fixed;
    bottom: 65px;
    left: 10px;
    width: 261px;
    background: #121214;
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    padding: 0 10px 0 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

.contact-footer-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #d0d0d5;
    font-family: 'Montserrat Alternates', sans-serif;
}

.contact-footer-content i {
    color: #b1ed49;
    font-size: 18px;
}

.discord-link {
    color: #b1ed49;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discord-link:hover {
    color: #d4ff6b;
    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .contact-footer {
        display: none;
    }

    .mobile-sidebar-container .contact-footer {
        display: block;
        position: static;
        width: auto;
        margin: 16px;
        border-radius: 10px;
    }
}

/* ================ МОБИЛЬНАЯ ВЕРСИЯ (max-width: 768px) ================ */
@media (max-width: 768px) {
    /* Скрываем десктопный сайдбар */
    .sidebar-container {
        display: none;
    }

    /* Кнопка гамбургер */
    .mobile-menu-toggle {
        position: fixed;
        top: 16px;
        right: 16px; /* Перемещена вправо */
        background: #121214;
        border: 1px solid #2a2a2e;
        border-radius: 50%; /* Круглая форма */
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #b1ed49;
        font-size: 24px;
        z-index: 1100;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-toggle:hover {
        background: #1e1e22;
        color: #d4ff6b;
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.6));
    }

    .mobile-menu-toggle.active .toggle-icon {
        transform: rotate(180deg);
    }

    .mobile-menu-toggle.active .toggle-icon::before {
        content: '\f00d'; /* Крестик */
    }

    .mobile-menu-toggle .toggle-icon {
        transition: transform 0.3s ease, content 0.3s ease;
    }

    /* Контейнер мобильного сайдбара */
    .mobile-sidebar-container {
        position: fixed;
        top: 0;
        left: -335px;
        width: 335px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1.3);
        z-index: 1000;
        overflow-y: auto;
    }

    .mobile-sidebar-container.open {
        left: 0;
        animation: elasticBounce 0.5s ease;
    }

    /* Стили сайдбаров */
    .mobile-sidebar {
        background: #121214;
        border: 1px solid #2a2a2e;
        border-radius: 0 16px 16px 0;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
    }

    /* Оверлей */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Улучшенные отступы и стили меню */
    .sidebar-menu {
        padding: 0 14px;
        gap: 10px;
    }

    .sidebar-item {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 10px;
    }

    .sidebar-item .icon {
        margin-right: 18px;
        font-size: 20px;
    }

    /* Полоса прокрутки */
    .sidebar-menu::-webkit-scrollbar {
        width: 3px;
    }

    .sidebar-menu::-webkit-scrollbar-track {
        background: #1e1e22;
        border-radius: 2px;
    }

    .sidebar-menu::-webkit-scrollbar-thumb {
        background: #b1ed49;
        border-radius: 2px;
    }
}

/* Скрываем мобильные элементы на десктопе */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-sidebar-container,
    .mobile-overlay {
        display: none;
    }
}

/* Анимация с отскоком */
@keyframes elasticBounce {
    0% {
        left: -250px;
    }
    60% {
        left: 15px;
    }
    80% {
        left: -5px;
    }
    100% {
        left: 0;
    }
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* Увеличена прозрачность для лучшего контраста */
    backdrop-filter: blur(6px); /* Увеличен блюр для мобильных */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none; /* Отключаем взаимодействие, когда оверлей скрыт */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Включаем взаимодействие, когда активен */
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e22;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    width: calc(100% - 20px); /* Отступы от краев экрана */
    max-height: 85vh; /* Увеличена высота для мобильных */
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-family: 'Montserrat Alternates', sans-serif;
    color: #d0d0d5;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%); /* Убрано масштабирование для плавности */
}

.close-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #a0a0a7;
    font-size: 26px; /* Увеличен размер для удобства на мобильных */
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1002; /* Выше модального окна */
}

.close-panel:hover {
    color: #ff6b6b;
}

.modal h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 20px; /* Уменьшен для мобильных, но читаемый */
    color: #b1ed49;
    margin: 0 0 15px;
    border-bottom: 1px solid #2a2a2e;
    padding-bottom: 8px;
}

.modal h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #ffffff;
    margin: 15px 0 10px;
}

.modal p {
    font-size: 14px;
    color: #e0e0e5;
    margin: 10px 0;
    line-height: 1.5;
}

.warning-box, .deadline-box, .consequences-box, .contact-info {
    background: rgba(106, 156, 45, 0.1);
    border-left: 3px solid #6A9C2D;
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-box i, .deadline-box i, .consequences-box i {
    color: #b1ed49;
    font-size: 18px;
}

.consequences-box i {
    color: #ff9800;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(40, 40, 44, 0.3);
    border-radius: 8px;
    border: 1px solid #2e2e32;
}

.requirement-icon i {
    color: #b1ed49;
    font-size: 22px;
    margin-top: 4px;
}

.requirement-text strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.requirement-text p {
    margin: 4px 0;
    font-size: 13px;
    color: #e0e0e5;
}

.requirement-details ul {
    list-style: disc;
    padding-left: 18px;
    margin: 8px 0 0;
    font-size: 13px;
    color: #d0d0d5;
}

.modal ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.modal ul li {
    padding: 8px 0;
    font-size: 13px;
    color: #e0e0e5;
    border-bottom: 1px solid #2a2a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal ul li:last-child {
    border-bottom: none;
}

.modal ul.list-style-disc {
    list-style: disc;
    padding-left: 18px;
}

/* Полоса прокрутки для модального окна */
.modal::-webkit-scrollbar {
    width: 6px; /* Увеличена для мобильных */
}

.modal::-webkit-scrollbar-track {
    background: #1e1e22;
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb {
    background: #b1ed49;
    border-radius: 3px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal {
        width: calc(100% - 16px); /* Уменьшенные отступы */
        padding: 16px;
        max-height: 90vh; /* Больше места на экране */
        border-radius: 10px;
    }

    .modal h3 {
        font-size: 18px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .modal h4 {
        font-size: 15px;
        margin: 12px 0 8px;
    }

    .modal p, .modal ul li, .requirement-text p, .requirement-details ul {
        font-size: 13px;
        line-height: 1.4;
    }

    .requirement-item {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .warning-box, .deadline-box, .consequences-box, .contact-info {
        padding: 10px;
        gap: 8px;
    }

    .warning-box i, .deadline-box i, .consequences-box i {
        font-size: 16px;
    }

    .requirement-icon i {
        font-size: 20px;
    }

    .requirement-text strong {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .modal {
        width: calc(100% - 12px); /* Минимальные отступы */
        padding: 12px;
        max-height: 92vh;
        border-radius: 8px;
    }

    .modal h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .modal h4 {
        font-size: 14px;
        margin: 10px 0 6px;
    }

    .modal p, .modal ul li, .requirement-text strong, .requirement-text p, .requirement-details ul {
        font-size: 12px;
        line-height: 1.3;
    }

    .requirement-item {
        padding: 8px;
        gap: 8px;
    }

    .warning-box, .deadline-box, .consequences-box, .contact-info {
        padding: 8px;
        gap: 6px;
    }

    .close-panel {
        font-size: 24px;
        top: 10px;
        right: 10px;
    }

    .modal::-webkit-scrollbar {
        width: 5px; /* Уменьшено для компактности */
    }
}

@media (max-width: 360px) {
    .modal {
        width: calc(100% - 8px);
        padding: 10px;
    }

    .modal h3 {
        font-size: 15px;
    }

    .modal h4 {
        font-size: 13px;
    }

    .modal p, .modal ul li, .requirement-text strong, .requirement-text p, .requirement-details ul {
        font-size: 11px;
    }

    .warning-box, .deadline-box, .consequences-box, .contact-info {
        padding: 6px;
    }
}

/* ================ АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ================ */
@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0;
        padding: 10px;
    }

    .sidebar-container {
        left: 10px;
        top: 10px;
    }

    .schedule-card.current-day::before {
        top: 10px;
        right: 10px;
        width: 6px;
        height: 6px;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .info-container {
        padding: 15px;
    }

    .info-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .info-icon {
        width: 32px;
        height: 32px;
    }

    .info-icon i {
        font-size: 14px;
    }

    .info-main {
        font-size: 14px;
    }

    .info-list {
        font-size: 13px;
    }
}