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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Главная страница */
.main-page {
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Черный хедер */
.main-header {
    background-color: #1E1E1E;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.header-logo-img {
    height: 45px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.header-button {
    background: #0058AA;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
    font-family: 'Unbounded', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.header-button:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 88, 170, 0.4);
}

.main-content {
    display: flex;
    flex: 1;
    padding: 40px;
    gap: 30px;
    justify-content: center;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    min-height: calc(100vh - 100px);
}

.main-left-section {
    width: 714px;
    height: 355px;
    background-image: url('/img/back_2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-right-section {
    width: 714px;
    height: 355px;
    background-image: url('/img/back_1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-left-section:hover,
.main-right-section:hover {
    transform: scale(1.02);
}

.main-left-section:hover::before,
.main-right-section:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.section-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: inherit;
}

.section-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    text-align: left;
}

.org-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.title-line {
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 34px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.org-button {
    border: none;
    cursor: pointer;
    padding: 22px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 900;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    pointer-events: none;
}

.org-button-white {
    background: white;
    color: #1e293b;
}

.section-link:hover .org-button-white.org-button-college {
    background-color: #0058AA;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 88, 170, 0.4);
}

.section-link:hover .org-button-white.org-button-university {
    background-color: #009F9B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 159, 155, 0.4);
}


/* Страница расписания */
.schedule-header {
    background-color: #1E1E1E;
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

.schedule-header h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 900;
    font-style: normal;
    margin: 0;
    padding-left: 240px;
    padding-right: 240px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
}

.back-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
    text-decoration: none;
    margin-left: 10px;
}

.back-logo:hover {
    opacity: 0.8;
}

.back-logo-img {
    width: 212px;
    height: 77px;
    object-fit: contain;
    max-width: 100%;
}

.schedule-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Вкладки */
.tabs {
    display: flex;
    gap: 0;
    background-color: white;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    justify-content: center;
}

.tab {
    padding: 15px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab:hover {
    color: #333;
    background-color: #f9f9f9;
}

.tab.active {
    color: #009F9B;
    border-bottom-color: #009F9B;
    font-weight: 500;
}

/* Фильтры */
.filters-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-section {
    display: none;
}

.filter-section.active {
    display: block;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.filter-row label {
    min-width: 120px;
    font-weight: 500;
    color: #333;
}

.select-wrapper {
    flex: 1;
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 35px;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #009F9B;
}

input[type="date"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="date"]:focus {
    outline: none;
    border-color: #009F9B;
}

.search-wrapper {
    flex: 1;
    position: relative;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.custom-select-input:focus {
    outline: none;
    border-color: #009F9B;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-select-dropdown.active {
    display: block;
}

.custom-select-search {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.custom-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.custom-select-search input:focus {
    outline: none;
    border-color: #009F9B;
}

.custom-select-options {
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-select-option:hover {
    background-color: #f5f5f5;
}

.custom-select-option.selected {
    background-color: #e3f2fd;
    color: #009F9B;
    font-weight: 500;
}

.custom-select-option.hidden {
    display: none;
}

.load-button {
    width: 100%;
    padding: 15px;
    background-color: #009F9B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.load-button:hover {
    background-color: #007a77;
}

.load-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Отображение расписания */
.schedule-display {
    margin-top: 30px;
}

.weekly-schedule {
    margin-top: 30px;
    padding-bottom: 40px;
}

.weekly-header {
    margin-bottom: 25px;
    text-align: center;
}

.weekly-title {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.weekly-date-range {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.weekly-days-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 10px;
    will-change: scroll-position;
    contain: layout style paint;
}

.day-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.day-card.today {
    border: 4px solid #009F9B;
    position: relative;
}

.day-card.today::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 16px;
    background: #ffffff;
    z-index: -1;
}

body.college-theme .day-card.today {
    border-color: #0058AA;
}

body.college-theme .day-card.today::before {
    background: #ffffff;
}

.day-card-header {
    background: #ffffff;
    color: #1E1E1E;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

body.college-theme .day-card-header {
    background: #ffffff;
    color: #1E1E1E;
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.day-card.today .day-card-header {
    border-bottom: 4px solid #009F9B;
}

body.college-theme .day-card.today .day-card-header {
    border-bottom: 4px solid #0058AA;
}

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

.day-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-icon-wrapper {
    padding: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.calendar-icon {
    font-size: 24px;
    display: block;
    color: #1E1E1E;
}

.day-card-date-info {
    display: flex;
    flex-direction: column;
    color: #1E1E1E;
}

.day-of-week {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 4px;
    color: #1E1E1E;
}

.day-full-date {
    font-size: 18px;
    font-weight: 900;
    color: #1E1E1E;
}

.day-card-stats {
    text-align: right;
    color: #1E1E1E;
}

.stats-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
    color: #1E1E1E;
}

.stats-count {
    font-size: 32px;
    font-weight: 900;
    color: #1E1E1E;
}

.day-card-content {
    padding: 24px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.no-lessons {
    color: #666;
    font-size: 16px;
    padding: 20px;
    text-align: center;
}

.lesson-card-modern {
    background: #ffffff;
    border-radius: 100px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.lesson-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lesson-card-left-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--lesson-color, #009F9B);
    border-radius: 12px 0 0 12px;
}

.lesson-card-body {
    display: flex;
    gap: 16px;
    align-items: stretch;
    min-height: 100%;
}

.lesson-left-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.lesson-pair-number-box {
    width: 70px;
    min-height: 64px;
    border-radius: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    padding: 10px 2px;
}

.pair-number {
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 2px;
}

.pair-label {
    font-size: 12px;
    opacity: 0.95;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 900;
}

.pair-time-full {
    width: 70px;
    flex: 1;
    padding: 12px 4px;
    border-radius: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    min-height: 100px;
    color: white;
}

.pair-time-start,
.pair-time-end {
    color: white;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pair-time-separator {
    width: 100%;
    height: 1px;
    border-top: 1px dashed rgba(255, 255, 255, 0.5);
    margin: 2px 0;
}

.pair-address {
    width: 100%;
    margin-top: 8px;
    padding: 6px 4px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-align: center;
    color: white;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.lesson-main-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-header-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.lesson-subject-name {
    font-size: 22px;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.lesson-type-badge-modern {
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 900;
    border: 1px solid;
    white-space: nowrap;
}

.lesson-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}


.lesson-detail-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon-box {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.detail-icon-modern {
    font-size: 16px;
    display: block;
    color: #475569;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label-modern {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.detail-value-modern {
    font-size: 16px;
    color: #1e293b;
    font-weight: 900;
}

.groups-more,
.groups-less {
    color: var(--lesson-color, #009F9B);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 900;
    margin-left: 4px;
}

.groups-more:hover,
.groups-less:hover {
    opacity: 0.8;
}

.lesson-time-item .detail-value-modern {
    font-weight: 900;
    font-size: 15px;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 2px;
}

/* Цвета для УРК */

body.college-theme .tab.active {
    color: #0058AA;
    border-bottom-color: #0058AA;
}

body.college-theme .select-wrapper select:focus,
body.college-theme input[type="date"]:focus,
body.college-theme .search-wrapper input[type="text"]:focus {
    border-color: #0058AA;
}

body.college-theme .load-button {
    background-color: #0058AA;
}

body.college-theme .load-button:hover {
    background-color: #004488;
}

body.college-theme .type-badge {
    background-color: #0058AA;
}

body.college-theme .custom-select-input:focus,
body.college-theme .custom-select-search input:focus {
    border-color: #0058AA;
}

body.college-theme .custom-select-option.selected {
    background-color: #e3f2fd;
    color: #0058AA;
}

/* Применение фирменных цветов */
body {
    background-color: #f5f5f5;
}

/* Адаптивность */

/* Планшеты и меньше (до 1024px) */
@media (max-width: 1024px) {
    .main-header {
        padding: 20px 30px;
    }

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

    .main-content {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
    }

    .main-left-section,
    .main-right-section {
        width: 100%;
        max-width: 714px;
        height: 355px;
    }

    .weekly-days-container {
        grid-template-columns: 1fr;
    }

    .schedule-content {
        padding: 15px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Главная страница */
    .main-header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-logo-img {
        height: 35px;
    }

    .header-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .main-content {
        padding: 20px;
        gap: 15px;
    }

    .main-left-section,
    .main-right-section {
        width: 100%;
        max-width: 600px;
        height: 300px;
        border-radius: 15px;
    }

    .section-content {
        padding: 20px;
        gap: 20px;
    }

    .title-line {
        font-size: 24px;
        line-height: 30px;
    }

    .org-button {
        padding: 14px 30px;
        font-size: 16px;
        min-width: 200px;
    }

    /* Страница расписания */
    .schedule-header {
        padding: 20px 15px;
    }

    .schedule-header h1 {
        font-size: 20px;
        padding-left: 180px;
        padding-right: 20px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .back-logo {
        left: 15px;
        margin-left: 8px;
    }

    .back-logo-img {
        width: 150px;
        height: 55px;
        max-width: 100%;
    }

    .schedule-content {
        padding: 15px 10px;
    }

    /* Вкладки */
    .tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Фильтры */
    .filters-container {
        padding: 20px;
        margin-bottom: 20px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .filter-row label {
        min-width: auto;
        width: 100%;
        font-size: 14px;
    }

    .select-wrapper,
    input[type="date"],
    .search-wrapper {
        width: 100%;
    }

    .load-button {
        padding: 12px;
        font-size: 15px;
    }

    /* Карточки дней */
    .weekly-days-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .day-card-header {
        padding: 15px;
    }

    .day-card-title {
        flex-direction: column;
        gap: 8px;
    }

    .day-card-date-info {
        font-size: 14px;
    }

    .day-card-stats {
        margin-top: 10px;
    }

    .day-card-content {
        padding: 12px;
        gap: 12px;
    }

    /* Карточки занятий */
    .lesson-card-modern {
        margin-bottom: 12px;
    }

    .lesson-left-column {
        width: 60px;
    }

    .lesson-pair-number-box {
        width: 60px;
        min-height: 56px;
        padding: 8px 2px;
    }

    .pair-number {
        font-size: 18px;
    }

    .pair-time-full {
        width: 60px;
        padding: 10px 3px;
        min-height: 80px;
    }

    .pair-time-start,
    .pair-time-end {
        font-size: 13px;
    }

    .lesson-subject-name {
        font-size: 16px;
    }

    .lesson-type-badge-modern {
        font-size: 11px;
        padding: 4px 8px;
    }

    .detail-label-modern {
        font-size: 11px;
    }

    .detail-value-modern {
        font-size: 13px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    /* Главная страница */
    .main-header {
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .header-logo {
        width: 100%;
        justify-content: center;
    }

    .header-logo-img {
        height: 30px;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .header-button {
        padding: 8px 16px;
        font-size: 13px;
    }

    .main-content {
        padding: 15px;
        gap: 12px;
    }

    .main-left-section,
    .main-right-section {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 220px;
        border-radius: 12px;
    }

    .section-content {
        padding: 15px;
        gap: 12px;
    }

    .title-line {
        font-size: 16px;
        line-height: 22px;
    }

    .org-button {
        padding: 16px 24px;
        font-size: 14px;
        min-width: 180px;
        width: 100%;
        max-width: 280px;
    }

    /* Страница расписания */
    .schedule-header {
        padding: 15px 10px;
    }

    .schedule-header h1 {
        font-size: 18px;
        padding-left: 140px;
        padding-right: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    .back-logo {
        left: 10px;
        margin-left: 5px;
    }

    .back-logo-img {
        width: 120px;
        height: 44px;
        max-width: 100%;
    }

    .schedule-content {
        padding: 10px 5px;
    }

    /* Вкладки */
    .tab {
        padding: 10px 15px;
        font-size: 13px;
    }

    /* Фильтры */
    .filters-container {
        padding: 15px;
    }

    .filter-row {
        margin-bottom: 12px;
    }

    .filter-row label {
        font-size: 13px;
    }

    .custom-select-input,
    input[type="date"] {
        font-size: 14px;
        padding: 8px 12px;
    }

    .load-button {
        padding: 10px;
        font-size: 14px;
    }

    /* Карточки дней */
    .day-card-header {
        padding: 12px;
    }

    .day-card-date-info {
        font-size: 12px;
    }

    .day-card-content {
        padding: 10px;
        gap: 10px;
    }

    /* Карточки занятий */
    .lesson-left-column {
        width: 55px;
    }

    .lesson-pair-number-box {
        width: 55px;
        min-height: 50px;
    }

    .pair-number {
        font-size: 16px;
    }

    .pair-time-full {
        width: 55px;
        min-height: 70px;
    }

    .pair-time-start,
    .pair-time-end {
        font-size: 12px;
    }

    .lesson-subject-name {
        font-size: 14px;
    }

    .lesson-type-badge-modern {
        font-size: 10px;
        padding: 3px 6px;
    }

    .detail-label-modern {
        font-size: 10px;
    }

    .detail-value-modern {
        font-size: 12px;
    }

    .detail-icon-modern {
        font-size: 14px;
    }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
    .main-content {
        padding: 10px;
        gap: 10px;
    }

    .main-left-section,
    .main-right-section {
        min-height: 200px;
        height: auto;
        border-radius: 10px;
    }

    .section-content {
        padding: 12px;
        gap: 12px;
    }

    .title-line {
        font-size: 16px;
        line-height: 22px;
    }

    .org-button {
        min-width: 160px;
        padding: 14px 20px;
        font-size: 13px;
        max-width: 100%;
    }

    .schedule-header h1 {
        font-size: 16px;
        padding-left: 130px;
        padding-right: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .back-logo-img {
        width: 100px;
        height: 36px;
        max-width: 100%;
    }

    .day-card-header {
        padding: 10px;
    }

    .day-card-content {
        padding: 8px;
    }
}

