/* =========================================================
   GLOBAL
   ========================================================= */

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

html {
    font-family: "Inter", Arial, sans-serif;
}

body {
    min-height: 100vh;
    background: #f6f7f9;
    color: #202124;

    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    width: 100%;
    height: 76px;

    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    width: 60%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================================
   BRAND
   ========================================================= */

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 40px;
    height: 40px;

    background: #e8f2ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #0066d6;
}

.brand-logo svg {
    width: 25px;
    height: 25px;

    flex-shrink: 0;

    color: #0066d6;
}


/* =========================================================
   BRAND TEXT
   ========================================================= */

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-name {
    color: #202124;

    font-size: 16px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.2px;
}

.brand-semester {
    color: #858a92;

    font-size: 9px;
    line-height: 1;

    font-weight: 700;

    letter-spacing: 0.8px;
}


/* =========================================================
   RIGHT SIDE
   ========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =========================================================
   STATUS
   ========================================================= */

.header-status {
    min-height: 36px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f2fbfd;
    border: 1px solid #d1ddee;
    border-radius: 20px;
    white-space: nowrap;

    box-shadow: 0 5px 8px rgba(0, 102, 214, 0.08);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.header-status:hover {
    background: #f8fbff;
    border-color: #c8dcf3;
    box-shadow: 0 4px 12px rgba(0, 102, 214, 0.10);
    transform: translateY(-1px);
}

/* =========================================================
   STATUS DOT
   ========================================================= */

.status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    background: #2fb344;
    border-radius: 50%;
}


/* =========================================================
   STATUS TEXT
   ========================================================= */

.status-text {
    color: #4b5158;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.3px;
}

.status-icon {
    width: 16px;
    height: 16px;
    margin-right: -3px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    color: #0066d6;
}

.status-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #0066d6;
}


/* =========================================================
   STATUS SEPARATOR
   ========================================================= */

/*
   Старый вариант с "—".

   Если ты теперь используешь SVG часов,
   этот элемент вообще не нужен.

   Поэтому пока просто оставляем CSS.

   Когда уберёшь separator из HTML,
   этот блок можно удалить.
*/

.status-separator {
    color: #a0a5ac;
    font-size: 12px;
    font-weight: 400;
}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.status-countdown {
    color: #0066d6;

    font-size: 13px;
    font-weight: 700;

    font-variant-numeric: tabular-nums;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.notification-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.notification-button svg {
    width: 22px;
    height: 22px;

    flex-shrink: 0;
    color: #8d8d8d;
}

/* =========================================================
   THEME TOGGLE
   ========================================================= */

.theme-button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.theme-button svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    color: #8d8d8d;
}

.status-dot--lesson {
    background: #2fb344;
}

.status-dot--break {
    background: #f59f00;
}

.status-dot--done {
    background: #9ca3af;
}

/* Экспериментальная анимация — просто ради интереса */
.status-icon svg {
    animation: spin-clock 3s linear infinite;
    transform-origin: center;
}

@keyframes spin-clock {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* .notification-button:hover {
    background: #f8f9fa;
} */

/* =========================================================
   PAGE BODY / DAY INFO
   ========================================================= */

.page-body {
    width: 60%;
    margin: 0 auto;
    padding: 32px 0 60px;
}

.week-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.week-badge-tag {
    background: #e8f2ff;
    color: #0066d6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 6px;
}

.week-badge-sep {
    color: #d1d5db;
}

.week-badge-label {
    color: #858a92;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.day-heading {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.day-sub {
    color: #858a92;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 70px;
}

/* =========================================================
   DAY SWITCHER
   ========================================================= */

.day-switcher {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 10px 8px;
    gap: 4px;
    margin-bottom: 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 8px 20px rgba(15, 23, 42, 0.08),
        0 2px 4px rgba(15, 23, 42, 0.04);
}
.day-switcher-item {
    flex: 1;
    text-align: center;
    padding: 16px 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.day-switcher-item:not(.active):hover {
    background: #f2f6fb;
    transform: translateY(-2px);
}

.day-switcher-item .dsi-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.day-switcher-item:not(.active) .dsi-label {
    font-size: 18px;
}

.day-switcher-item .dsi-number {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #202124;
}

.day-switcher-item.active {
    background: #0066d6;
}

.day-switcher-item.active .dsi-label,
.day-switcher-item.active .dsi-number {
    color: #ffffff;
}

.day-switcher-calendar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9ca3af;
    cursor: pointer;
}

.day-switcher-calendar svg {
    width: 25px;
    height: 25px;
}

.page-body {
    animation: fade-in-up 0.5s ease both;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-dot--lesson {
    background: #2fb344;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 179, 68, 0.5); }
    50% { box-shadow: 0 0 0 5px rgba(47, 179, 68, 0); }
}

.status-countdown {
    color: #0066d6;
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: transform 0.1s ease;
}

.day-switcher-calendar {
    transition: color 0.2s ease, transform 0.2s ease;
}

.day-switcher-calendar:hover {
    color: #0066d6;
    transform: rotate(-8deg);
}

.status-countdown.tick {
    animation: tick-bounce 0.25s ease;
}

@keyframes tick-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* =========================================================
   SECTION TITLE
   ========================================================= */

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #202124;
    margin-top: 32px;
    margin-bottom: 24px;
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 25px;
    height: 25px;
    color: #0066d6;
}

.section-title-icon svg {
    width: 25px;
    height: 25px;
}

/* =========================================================
   LESSON CARDS
   ========================================================= */

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lesson-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lesson-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.lesson-card--current {
    border-color: #0066d6;
    box-shadow: 0 0 0 3px rgba(0, 102, 214, 0.10);
}

.lesson-card--past {
    background: #fafbfc;
}

.lesson-card--past .lt-time,
.lesson-card--past .lesson-subject {
    color: #a3a7ae;
}

.lesson-card--past .lt-sub,
.lesson-card--past .lesson-meta {
    color: #c1c5cb;
}

.lesson-card--past .meta-icon {
    color: #c1c5cb;
}

.lesson-card--past .tag {
    opacity: 0.6;
}

.lesson-time {
    min-width: 86px;
    flex-shrink: 0;
}

.lt-time {
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #202124;
    letter-spacing: -0.5px;
}

.lt-sub {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lt-dot {
    color: #d1d5db;
    font-weight: 800;
    margin: 0 4px;
    font-size: 15px;
}

.lesson-main {
    flex: 1;
    min-width: 0;
}

.lesson-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.tag--subgroup {
    background: #eef2ff;
    color: #4338ca;
}

.tag--now {
    background: #dcfce7;
    color: #15803d;
}

.lesson-subject {
    font-size: 20px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 16px;
}

.lesson-meta {
    font-size: 13px;
    color: #858a92;
    font-weight: 500;
}

.lesson-meta .dot {
    margin: 0 6px;
    color: #d1d5db;
    font-size: 25px;
}

.lesson-status-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.lesson-status-icon svg {
    width: 22px;
    height: 22px;
}

.lesson-empty {
    text-align: center;
    color: #9ca3af;
    padding: 40px 0;
    font-size: 14px;
}

.section-title-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    color: #9ca3af;
}

.search-box svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 110px;
    color: #202124;
}

.btn-outline {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5158;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.tag--type-lecture {
    background: #e0edff;
    color: #0066d6;
}

.tag--type-practice {
    background: #dcfce7;
    color: #15803d;
}

.lesson-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #9ca3af;
}

.meta-icon--teacher {
    width: 16px;
    height: 16px;
}

.lesson-card--current {
    border-left: 4px solid #0066d6;
}

.lesson-card {
    animation: card-in 0.8s ease both;
}

.lesson-card:active {
    transform: scale(0.98);
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.status-dot--before-start {
    background: #94a3b8;
}

.site-header {
    transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   REGISTER PAGE
   ========================================================= */

.register-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.register-topbrand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #0066d6;
    margin-bottom: 16px;
}

.register-topbrand-icon {
    width: 32px;
    height: 32px;
    background: #0066d6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-topbrand-icon svg {
    width: 18px;
    height: 18px;
}

.register-badge {
    background: #eef2ff;
    color: #0066d6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.register-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.register-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.register-subtitle {
    font-size: 13px;
    color: #858a92;
    text-align: center;
    margin-bottom: 28px;
}

/* =========================================================
   REGISTER FORM FIELDS
   ========================================================= */

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5158;
    margin-bottom: 6px;
    margin-top: 18px;
}

.field-label:first-of-type {
    margin-top: 0;
}

.field-optional {
    float: right;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
}

.field-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #202124;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-input:focus {
    border-color: #0066d6;
    box-shadow: 0 0 0 3px rgba(0, 102, 214, 0.10);
}

.field-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

select.field-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 38px;
}

.field-divider {
    height: 1px;
    background: #eef0f3;
    margin: 24px 0;
}

.field-row {
    display: flex;
    gap: 14px;
}

.field-row .field-label {
    margin-top: 9px;
}

.field-col {
    flex: 1;
}

/* =========================================================
   SUBGROUP TABS
   ========================================================= */

.subgroup-tabs {
    display: flex;
    gap: 8px;
    background: #f4f5f7;
    border-radius: 10px;
    padding: 5px;
}

.subgroup-tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5158;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.subgroup-tab.active {
    background: #ffffff;
    color: #0066d6;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.subgroup-placeholder {
    padding: 10px 8px;
    font-size: 13px;
    color: #9ca3af;
}

/* =========================================================
   SUBMIT
   ========================================================= */

.register-submit {
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    background: #0066d6;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.register-submit:hover {
    background: #0058ba;
    transform: translateY(-1px);
}

.register-submit:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.register-note {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 12px;
}

.field-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px;
    color: #0066d6;
}

.progress-track {
    height: 4px;
    background: #eef0f3;
    border-radius: 999px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #0066d6;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.field-input:invalid:focus {
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f4f5f7;
    font-size: 14px;
}

.profile-label {
    color: #858a92;
    font-weight: 500;
}

.profile-value {
    color: #202124;
    font-weight: 600;
}

.profile-back {
    display: block;
    text-align: center;
    margin-top: 24px;
    text-decoration: none;
}

.profile-reset {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.profile-reset:hover {
    background: #fee2e2;
}

/* =========================================================
   DARK THEME — иконки в кнопке
   ========================================================= */

.theme-button {
    position: relative;
}

.icon-sun, .icon-moon {
    position: absolute;
}

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}

/* =========================================================
   DARK THEME — основные цвета
   ========================================================= */

[data-theme="dark"] body {
    background: #0f1115;
    color: #e5e7eb;
}

[data-theme="dark"] .week-badge-label {
    color: #ffffff;
}


[data-theme="dark"] .site-header {
    background: #16181d;
    border-bottom-color: #262933;
}

[data-theme="dark"] .brand-name {
    color: #e5e7eb;
}

[data-theme="dark"] .brand-semester,
[data-theme="dark"] .day-sub,
[data-theme="dark"] .lt-sub,
[data-theme="dark"] .lesson-meta,
[data-theme="dark"] .status-text,
[data-theme="dark"] .field-label,
[data-theme="dark"] .register-subtitle,
[data-theme="dark"] .profile-label {
    color: #ffffff;
}

[data-theme="dark"] .theme-button svg,
[data-theme="dark"] .notification-button svg {
    color: #ffffff;
}

[data-theme="dark"] .header-status {
    background: #1c2430;
    border-color: #2a3342;
}

[data-theme="dark"] .day-heading,
[data-theme="dark"] .register-title,
[data-theme="dark"] .lesson-subject,
[data-theme="dark"] .lt-time,
[data-theme="dark"] .profile-value {
    color: #f3f4f6;
}

[data-theme="dark"] .day-switcher {
    background: #16181d;
    border-color: #262933;
}

[data-theme="dark"] .day-switcher-item .dsi-label,
[data-theme="dark"] .day-switcher-item .dsi-number {
    color: #9199a8;
}

[data-theme="dark"] .day-switcher-item.active {
    background: #0066d6;
}

[data-theme="dark"] .day-switcher-item.active .dsi-label,
[data-theme="dark"] .day-switcher-item.active .dsi-number {
    color: #ffffff;
}

[data-theme="dark"] .day-switcher-calendar {
    color: #6b7280;
}

[data-theme="dark"] .lesson-card,
[data-theme="dark"] .register-card,
[data-theme="dark"] .search-box,
[data-theme="dark"] .btn-outline {
    background: #16181d;
    border-color: #262933;
}

[data-theme="dark"] .lesson-card--past {
    background: #131519;
}

[data-theme="dark"] .lesson-card--past .lt-time,
[data-theme="dark"] .lesson-card--past .lesson-subject {
    color: #565c68;
}

[data-theme="dark"] .lesson-card--past .lt-sub,
[data-theme="dark"] .lesson-card--past .lesson-meta {
    color: #3f454f;
}

[data-theme="dark"] .field-input {
    background: #1c1f26;
    border-color: #2a2e37;
    color: #e5e7eb;
}

[data-theme="dark"] .field-input:disabled {
    background: #16181d;
    color: #565c68;
}

[data-theme="dark"] .field-divider,
[data-theme="dark"] .profile-row {
    border-color: #262933;
}

[data-theme="dark"] .subgroup-tabs {
    background: #1c1f26;
}

[data-theme="dark"] .subgroup-tab.active {
    background: #262933;
    color: #4a9eff;
}

[data-theme="dark"] .footer,
[data-theme="dark"] .footer a {
    color: #565c68;
}

[data-theme="dark"] .search-box input {
    background: transparent;
    color: #e5e7eb;
}

[data-theme="dark"] .search-box input::placeholder {
    color: #565c68;
}

[data-theme="dark"] .search-box svg {
    color: #565c68;
}

[data-theme="dark"] .section-title {
    color: #f3f4f6;
}

[data-theme="dark"] .section-title-icon {
    color: #4a9eff;
}

.theme-button svg {
    transition: transform 0.4s ease;
}

.theme-button:active svg {
    transform: rotate(180deg);
}

.header-icons-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bottom-nav {
    display: none;
}

.dsi-number-mobile {
    display: none;
}

/* =========================================================
   FULL SCHEDULE PAGE
   ========================================================= */

.full-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 60px;
}

.full-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.full-back {
    color: #0066d6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.full-year-badge {
    background: #f4f5f7;
    color: #858a92;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.full-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.full-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.full-subtitle {
    font-size: 13px;
    color: #858a92;
}

.week-toggle {
    display: flex;
    background: #f4f5f7;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.week-toggle-btn {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #4b5158;
    text-decoration: none;
}

.week-toggle-btn.active {
    background: #0066d6;
    color: #ffffff;
}

.full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.full-day-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.full-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.full-day-head-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #202124;
}

.full-day-head-left svg {
    width: 16px;
    height: 16px;
    color: #0066d6;
}

.full-day-head-short {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
}

.full-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 14px 16px;
}

.full-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.full-card-time {
    font-size: 12px;
    font-weight: 700;
    color: #202124;
}

.full-card-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.full-card-subject {
    font-size: 14px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 6px;
}

.full-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #858a92;
}

.full-footer {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 40px;
}

/* Тёмная тема */
[data-theme="dark"] .full-title,
[data-theme="dark"] .full-card-subject,
[data-theme="dark"] .full-day-head-left,
[data-theme="dark"] .full-card-time {
    color: #f3f4f6;
}

[data-theme="dark"] .full-subtitle,
[data-theme="dark"] .full-card-meta,
[data-theme="dark"] .full-day-head-short,
[data-theme="dark"] .full-footer {
    color: #9199a8;
}

[data-theme="dark"] .full-card {
    background: #16181d;
    border-color: #262933;
}

[data-theme="dark"] .full-year-badge,
[data-theme="dark"] .week-toggle {
    background: #1c1f26;
    color: #9199a8;
}

@media (max-width: 768px) {
    .full-grid {
        grid-template-columns: 1fr;
    }

    .full-page {
        padding: 20px 16px 100px;
    }
}

/* =========================================================
   MOBILE — 640px и уже
   ========================================================= */

@media (max-width: 640px) {

    /* ===== Хедер: лого сверху, статус+иконки снизу ===== */

    .site-header {
        height: auto;
    }

    .header-inner {
        width: 100%;
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 10px;
    }

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

    .header-actions {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    /* ===== Статус-плашка — компактная, без длинного текста ===== */

    .header-status {
        flex: 0 0 auto;
        min-width: 140px;
        padding: 0 24px;
        gap: 6px;
    }

    /* .status-text,
    .status-separator,
    .status-icon {
        display: none;
    } */

    /* ===== Иконки справа — плотная группа ===== */

    .header-icons-group {
        flex-shrink: 0;
        gap: 2px;
    }

    .theme-button,
    .notification-button {
        width: 32px;
        height: 32px;
    }

        /* ===== Тело страницы — без десктопных боковых отступов ===== */

    .page-body {
        width: 100%;
        padding: 24px 16px 40px;
    }

    /* ===== Блок дня ===== */

    .day-heading {
        font-size: 32px;
    }

    .day-sub {
        font-size: 13px;
        margin-bottom: 24px;
    }

    /* ===== Лента дней — компактнее, число видно у всех ===== */

    /* ===== Лента дней — отдельные кубики ===== */

    .day-switcher {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 8px;
    }

    .day-switcher-item {
        background: #ffffff;
        border: 1px solid #eef0f3;
        border-radius: 14px;
        padding: 12px 2px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    }

    .day-switcher-item.active {
        background: #0066d6;
        border-color: #0066d6;
    }

    [data-theme="dark"] .day-switcher-item {
        background: #16181d;
        border-color: #262933;
    }

    [data-theme="dark"] .day-switcher-item.active {
        background: #0066d6;
        border-color: #0066d6;
    }

    [data-theme="dark"] .day-switcher-item .dsi-label,
    [data-theme="dark"] .day-switcher-item .dsi-number-mobile {
        color: #9199a8;
    }

    [data-theme="dark"] .day-switcher-item.active .dsi-label,
    [data-theme="dark"] .day-switcher-item.active .dsi-number-mobile {
        color: #ffffff;
    }

    [data-theme="dark"] .bottom-nav {
        background: #16181d;
        border-top-color: #262933;
    }

    [data-theme="dark"] .bottom-nav-item {
        color: #565c68;
    }

    [data-theme="dark"] .bottom-nav-item.active {
        color: #4a9eff;
    }

    .day-switcher-item .dsi-label {
        font-size: 11px !important;
    }

    .day-switcher-item .dsi-number {
        display: none !important;
    }

    .day-switcher-calendar {
        display: none;
    }
    
    .dsi-number-mobile {
        display: block;
        font-size: 14px;
        font-weight: 700;
        color: inherit;
    }

        /* ===== Заголовок секции: лупа + весь график в одну линию ===== */

    .section-title {
        flex-wrap: nowrap;
        margin-top: 24px;
        justify-content: space-between;
        position: relative;
    }

    .section-title-left {
        flex-shrink: 0;
    }

    .section-title-left {
        font-size: 14px;
    }

    .section-title-actions {
        display: contents;
    }

    .search-icon-btn {
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #9ca3af;
        cursor: pointer;
        flex-shrink: 0;
    }

    .search-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .search-box {
        display: none;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        margin-top: 8px;
        z-index: 50;
    }

    .search-box.open {
        display: flex;
    }

    .section-title {
        position: relative;
    }

    .search-icon-btn {
        display: flex;
    }
    .btn-outline {
        background: #e8f2ff;
        color: #0066d6;
        border: 1px solid #0066d6;
        border-radius: 999px;
        padding: 3px 16px;
        font-size: 11px;
    }

        /* ===== Карточки занятий — компактнее под мобильный ===== */

    .lesson-list {
        gap: 10px;
    }

    .lesson-card {
        padding: 14px 16px;
        gap: 14px;
        border-radius: 14px;
    }

    .lesson-time {
        min-width: 56px;
    }

    .lt-time {
        font-size: 15px;
    }

    .lt-sub {
        font-size: 10px;
    }

    .lesson-subject {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .lesson-tags {
        margin-bottom: 8px;
    }

    .tag {
        font-size: 10px;
        padding: 4px 10px;
    }

    .lesson-meta {
        font-size: 12px;
    }

    .meta-icon {
        width: 12px;
        height: 12px;
    }

        /* ===== Место под fixed-навигацию снизу ===== */

    .bottom-nav {
        display: flex;
    }

    /* body {
        padding-bottom: 110px;
    } */

    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }

    .bottom-nav-item {
        font-size: 9px;
        gap: 2px;
    }

    .bottom-nav {
        padding: 6px 0 max(6px, env(safe-area-inset-bottom));
    }

    /* ===== Нижняя мобильная навигация ===== */

    .bottom-nav {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 100;

        height: 64px;
        padding: 6px;

        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(229, 231, 235, 0.9);
        border-radius: 22px;

        box-shadow:
            0 8px 30px rgba(15, 23, 42, 0.12);

        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);

        justify-content: space-around;
        align-items: stretch;
    }

    .bottom-nav-item {
        flex: 1;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 3px;

        color: #9ca3af;
        text-decoration: none;

        font-size: 10px;
        font-weight: 600;

        border-radius: 12px;

        transition:
            color 0.2s ease,
            background 0.2s ease;
    }

    .bottom-nav-item svg {
        width: 21px;
        height: 21px;

        flex-shrink: 0;
    }

    .bottom-nav-item.active {
        color: #0066d6;
    }

    .bottom-nav-item:hover {
        color: #0066d6;
    }

    /* Чтобы контент страницы не залезал под навигацию */
    .page-body {
        padding-bottom: 100px;
    }
    
        /* ===== Register / Profile card — мобильная адаптация ===== */

    .register-page {
        max-width: 100%;
        padding: 32px 16px 100px;
    }

    .register-topbrand {
        font-size: 15px;
    }

    .register-topbrand-icon {
        width: 28px;
        height: 28px;
    }

    .register-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .register-card {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .register-title {
        font-size: 20px;
    }

    .register-subtitle {
        font-size: 12px;
    }

    /* ===== Профиль: строки данных ===== */

    .profile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 10px 0;
    }

    .profile-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .profile-value {
        font-size: 14px;
    }

    .profile-back {
        font-size: 13px;
    }

    .profile-reset {
        font-size: 12px;
        padding: 11px;
    }
}

