/* ===== СУЧАСНИЙ ЯСКРАВИЙ ДИЗАЙН 2026 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fc-gradient: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFD93D);
    --lfc-gradient: linear-gradient(135deg, #6BCB77, #4D96FF, #A6F6FF);
    --fc-glow: #FF6B6B;
    --lfc-glow: #6BCB77;
    --fc-color: #FF6B6B;
    --lfc-color: #6BCB77;
    --blue-color: #4D96FF;
    --yellow-color: #FFD93D;
    --purple-color: #9B59B6;
    --brown-color: #CD853F;
    --gray-color: #95A5A6;
    --card-bg: #ffffff;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Головна картка */
.lesson-card {
    max-width: 1200px;
    width: 100%;
    background: var(--card-bg);
    border-radius: 48px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Навігація */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-bottom: 2px solid #f0f0f0;
}

.nav-bar a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 40px;
    transition: all 0.2s;
}

.nav-bar a:hover {
    background: var(--yellow-color);
    transform: scale(1.05);
}

.nav-bar .date {
    color: #666;
    font-weight: 500;
    background: #f0f0f0;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.95em;
}

.lesson-date-bright {
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    color: white;
    font-weight: 800;
    font-size: 1.05em;
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 14px rgba(255,107,107,0.5);
    letter-spacing: 0.03em;
    animation: pulse 2s infinite;
}

.lessons-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--fc-gradient);
    color: white;
    font-size: 1.4em;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(255,107,107,0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Хедер */
.header {
    padding: 40px 30px;
    text-align: center;
}

.header.fc {
    background: var(--fc-gradient);
}

.header.lfc {
    background: var(--lfc-gradient);
}

.big-emoji {
    font-size: 100px;
    display: inline-block;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
    animation: bounce 2s infinite;
}

/* Динамічна дата на банері */
.date-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    overflow: hidden;
    width: 110px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.2));
}
.date-badge-month {
    background: #e63946;
    color: #fff;
    width: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 0 4px;
}
.date-badge-day {
    color: #222;
    font-size: 58px;
    font-weight: 900;
    line-height: 1;
    padding: 8px 0 10px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header h1 {
    font-size: 3em;
    margin: 10px 0 0;
    color: white;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
    letter-spacing: 1px;
}

/* Контент */
.content {
    padding: 40px;
}

/* Інвентар для уроків */
.inventory {
    background: white;
    padding: 25px 30px;
    border-radius: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
}

.inventory.fc {
    border-left: 10px solid var(--fc-glow);
}

.inventory.lfc {
    border-left: 10px solid var(--lfc-glow);
}

.inventory-icon {
    font-size: 50px;
}

.inventory-text strong {
    font-size: 1.5em;
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.inventory-text p {
    font-size: 1.2em;
    margin: 0;
    color: #666;
}

.inventory-text .inv-alt,
.inventory-text .inv-none {
    font-size: 1em;
    margin-top: 6px;
    color: #888;
}

.inventory-text .inv-alt { color: #e67e22; }
.inventory-text .inv-none { color: #27ae60; }

/* Блоки вправ для уроків */
.exercise-block {
    background: white;
    padding: 30px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
}

.exercise-block:hover {
    transform: translateX(10px);
    border-color: var(--yellow-color);
}

.fc .exercise-block h3 {
    color: var(--fc-glow);
    font-size: 1.8em;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.lfc .exercise-block h3 {
    color: var(--lfc-glow);
    font-size: 1.8em;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.exercise-block h3 span {
    font-size: 1.5em;
}

.exercise-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.exercise-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.exercise-vid {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.exercise-item p {
    font-size: 1.2em;
    margin: 0;
    padding: 12px 16px 16px;
    line-height: 1.4;
}

.fc .exercise-item b {
    color: var(--fc-glow);
}

.lfc .exercise-item b {
    color: var(--lfc-glow);
}

/* Кнопка для уроків */
.btn-main {
    display: block;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    border-radius: 60px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
    border: 4px solid white;
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.btn-main.fc {
    background: linear-gradient(45deg, var(--fc-color), #FF8E53);
}

.btn-main.lfc {
    background: linear-gradient(45deg, var(--lfc-color), #4D96FF);
}

.btn-main:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.3);
}

/* Заголовки секцій для index.php */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--blue-color);
}

.section-title h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin: 0;
}

.section-icon {
    font-size: 2em;
}

/* Сітка класів для index.php */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.class-card {
    background: white;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
}

.class-card h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 1.1em;
}

.class-link {
    display: block;
    text-decoration: none;
    padding: 8px;
    margin: 5px 0;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
    color: white;
}

.class-link:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.fc-link { background: var(--fc-color); }
.lfc-link { background: var(--lfc-color); }

/* Тижневий розклад уроків */
.week-schedule-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.week-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.week-table thead tr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.week-table thead th {
    color: white;
    padding: 14px 10px;
    font-weight: 700;
    font-size: 1.05em;
    letter-spacing: 1px;
    text-align: center;
}

.week-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.week-table tbody tr:last-child {
    border-bottom: none;
}

.week-table tbody tr:hover {
    background: #f8f9ff;
}

.week-table tbody td {
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
}

.wt-num {
    font-weight: 800;
    color: #764ba2;
    font-size: 1.1em;
    width: 36px;
}

.wt-time {
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
    white-space: nowrap;
    width: 120px;
}

.type-fc {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    color: #FF6B6B;
    margin-left: 3px;
}

.type-lfc {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    color: #6BCB77;
    margin-left: 3px;
}

.wt-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    border: 2px solid transparent;
}

.wt-link.fc {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
}

.wt-link.lfc {
    background: rgba(107, 203, 119, 0.15);
    border-color: rgba(107, 203, 119, 0.4);
}

.wt-link:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.wt-link.fc:hover {
    background: rgba(255, 107, 107, 0.3);
    border-color: #FF6B6B;
}

.wt-link.lfc:hover {
    background: rgba(107, 203, 119, 0.3);
    border-color: #6BCB77;
}

/* Поточний день — підсвічування колонки */
.week-table th.wt-col-today {
    background: linear-gradient(135deg, #FFD93D, #FF8E53);
    color: #2c3e50;
    position: relative;
}

.zoom-row-now {
    background: linear-gradient(90deg, rgba(255,107,107,0.12), rgba(255,217,61,0.12), rgba(255,107,107,0.12));
    background-size: 200%;
    animation: lessonRowPulse 2s ease-in-out infinite;
    outline: 2px solid #FF6B6B;
    outline-offset: -2px;
    font-weight: 700;
}

.zoom-row-now td:first-child {
    color: #FF4444;
    font-weight: 800;
}

.day-block-today {
    border: 3px solid #FFD93D;
    box-shadow: 0 0 0 4px rgba(255,217,61,0.3), 0 10px 30px rgba(0,0,0,0.12);
}

.day-block-today .day-title {
    background: linear-gradient(135deg, #FFD93D, #FF8E53);
    color: #2c3e50;
}

.week-table td.wt-col-today {
    background: rgba(255, 217, 61, 0.12);
}

/* Поточний урок — підсвічування рядка */
.week-table tr.wt-row-now {
    background: linear-gradient(90deg, rgba(255,107,107,0.12), rgba(255,217,61,0.12), rgba(255,107,107,0.12));
    background-size: 200%;
    animation: lessonRowPulse 2s ease-in-out infinite;
    outline: 2px solid #FF6B6B;
    outline-offset: -2px;
}

.week-table tr.wt-row-now .wt-num {
    color: #FF4444;
}

.week-table tr.wt-row-now .wt-time {
    color: #FF4444;
    font-weight: 800;
}

@keyframes lessonRowPulse {
    0%, 100% { background-position: 0%; }
    50%       { background-position: 100%; }
}

/* Перетин — поточний день + поточний урок */
.week-table tr.wt-row-now td.wt-col-today {
    background: rgba(255, 107, 107, 0.22);
}

@media (max-width: 768px) {
    .week-table thead th,
    .week-table tbody td {
        padding: 8px 5px;
        font-size: 0.85em;
    }
    .wt-time {
        font-size: 0.78em;
    }
}

/* Календар */
.calendar-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.calendar-month {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
}

.calendar-month h3 {
    text-align: center;
    margin: 0 0 15px;
    color: #2c3e50;
    font-size: 1.2em;
}

.cal-table {
    width: 100%;
    border-collapse: collapse;
}

.cal-table th {
    color: #666;
    font-weight: 600;
    font-size: 0.9em;
    padding: 5px;
    text-align: center;
}

.cal-table td {
    text-align: center;
    padding: 8px 5px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
}

.cal-table td.even {
    background: var(--blue-color);
    color: white;
}

.cal-table td.odd {
    background: var(--yellow-color);
    color: #2c3e50;
}

/* Легенда */
.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
    padding: 15px;
    background: white;
    border-radius: 40px;
    justify-content: center;
    border: 2px solid #f0f0f0;
}

.legend-even, .legend-odd, .legend-current {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95em;
}

.legend-even {
    background: var(--blue-color);
    color: white;
}

.legend-odd {
    background: var(--yellow-color);
    color: #2c3e50;
}

.legend-current {
    background: var(--fc-color);
    color: white;
}

/* Zoom картка */
.zoom-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
}

.zoom-id {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 1.2em;
    font-weight: 600;
}

.zoom-id span {
    background: rgba(255,255,255,0.2);
    padding: 8px 25px;
    border-radius: 40px;
}

/* Розклад */
.schedule {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.day-block {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 2px solid #f0f0f0;
}

.day-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1.2em;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    color: #666;
    font-weight: 600;
    font-size: 0.9em;
}

.schedule-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

/* Бейджі класів */
.class-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    font-size: 0.9em;
}

.bg5 { background: var(--fc-color); }
.bg6 { background: var(--brown-color); }
.bg7 { background: var(--blue-color); }
.bg8a { background: #6BCB77; }
.bg8b { background: var(--purple-color); }
.bg9 { background: #FF6B6B; }
.bg10 { background: var(--gray-color); }

/* Кнопка Zoom */
.zoom-link {
    display: inline-block;
    background: var(--blue-color);
    color: white;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 25px;
    font-size: 0.9em;
    transition: 0.3s;
}

.zoom-link:hover {
    background: #2d7ae0;
    transform: scale(1.05);
}

/* Правила */
.rules {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    border: 2px solid #f0f0f0;
}

.rules p {
    margin: 10px 0;
    font-size: 1.1em;
    padding: 5px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.rules p:last-child {
    border-bottom: none;
}

.rules .small {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* Telegram */
.telegram {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 3px solid #0088cc;
}

.telegram p {
    margin: 12px 0;
    font-size: 1.1em;
}

.telegram .highlight {
    background: #0088cc;
    color: white;
    padding: 8px 25px;
    border-radius: 40px;
    display: inline-block;
}

.qr {
    max-width: 150px;
    height: auto;
    margin: 20px auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tg-link {
    display: inline-block;
    background: #0088cc;
    color: white;
    text-decoration: none;
    padding: 12px 35px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 15px;
    transition: 0.3s;
}

.tg-link:hover {
    background: #006699;
    transform: scale(1.05);
}

/* Telegram блок для уроків */
.telegram-block {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 30px;
    border-radius: 40px;
    margin: 30px 0;
    border: 3px solid #0088cc;
}

.telegram-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.telegram-header h2 {
    color: #0088cc;
    font-size: 2em;
    margin: 0;
}

.tg-emoji {
    font-size: 40px;
}

.telegram-info {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.telegram-info p {
    margin: 10px 0;
}

.telegram-info .highlight {
    background: #0088cc;
    color: white;
    padding: 8px 25px;
    border-radius: 40px;
    display: inline-block;
}

.telegram-important {
    background: #FFD93D;
    padding: 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.important-icon {
    font-size: 40px;
}

.important-text {
    font-size: 1.2em;
    flex: 1;
}

.important-text .highlight {
    background: #FF6B6B;
    color: white;
    padding: 5px 20px;
    border-radius: 40px;
    display: inline-block;
    margin-top: 8px;
}

.telegram-qr {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: #e8f4ff;
    border-radius: 30px;
}

.qr-img {
    max-width: 150px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.telegram-button {
    text-align: center;
    margin: 25px 0;
}

.telegram-button a {
    display: inline-block;
    background: #0088cc;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 60px;
    font-weight: bold;
    font-size: 1.5em;
    border: 3px solid white;
    box-shadow: 0 10px 20px rgba(0,136,204,0.3);
    transition: all 0.2s;
}

.telegram-button a:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 25px rgba(0,136,204,0.4);
}

/* Футер */
.footer-note {
    text-align: center;
    margin: 30px 0 10px;
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 50px;
}

/* Адаптація */
/* (мобільні стилі перенесено в кінець файлу) */

/* ========================================================
   ✨ WOW EFFECTS — ЯСКРАВИЙ ДИТЯЧИЙ САЙТ 2026 ✨
   ======================================================== */

/* --- Анімований фон сторінки --- */
body {
    background: linear-gradient(270deg,
        #667eea, #764ba2, #f472b6, #fb923c,
        #34d399, #60a5fa, #a78bfa, #667eea);
    background-size: 600% 600%;
    animation: bgShift 12s ease infinite;
}

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Веселкова рамка картки --- */
.lesson-card {
    border: 4px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.lesson-card::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 52px;
    background: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF, #9B59B6, #FF6B6B);
    background-size: 300%;
    animation: rainbowBorder 4s linear infinite;
    z-index: -1;
}

@keyframes rainbowBorder {
    0%   { background-position: 0%; }
    100% { background-position: 300%; }
}

/* --- Веселковий текст заголовків секцій --- */
.section-title h2 {
    background: linear-gradient(90deg, #FF6B6B, #FF8E53, #FFD93D, #6BCB77, #4D96FF, #9B59B6, #FF6B6B);
    background-size: 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 5s linear infinite;
    font-size: 1.7em;
}

@keyframes rainbowText {
    0%   { background-position: 0%; }
    100% { background-position: 400%; }
}

.section-title {
    border-bottom: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #FF6B6B, #4D96FF, #6BCB77) border-box;
    border-radius: 8px 8px 0 0;
    padding: 10px 5px 12px;
    margin: 35px 0 20px;
}

/* --- Більший і крутіший великий емодзі --- */
.big-emoji {
    font-size: 120px;
    animation: superBounce 2.5s ease-in-out infinite;
    display: inline-block;
    transition: transform 0.3s;
    cursor: pointer;
}

@keyframes superBounce {
    0%   { transform: translateY(0) rotate(0deg) scale(1); }
    20%  { transform: translateY(-20px) rotate(8deg) scale(1.15); }
    40%  { transform: translateY(-8px) rotate(-4deg) scale(1.08); }
    60%  { transform: translateY(-16px) rotate(5deg) scale(1.12); }
    80%  { transform: translateY(-4px) rotate(-2deg) scale(1.03); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* ================================================================
   ЯСКРАВА SVG/CSS АНІМАЦІЯ ХЕДЕРА
   ================================================================ */

.header {
    position: relative;
    overflow: hidden;
}

/* Плаваючі блискучі частки (box-shadow trick — 30 штук) */
.header::before {
    content: '';
    position: absolute;
    top: 130px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow:
        /* ряд 1 */
         15px -20px 0 2px rgba(255,255,255,0.8),
         55px -70px 0 1px rgba(255,255,255,0.6),
         95px -40px 0 3px rgba(255,255,255,0.9),
        145px -90px 0 1px rgba(255,255,255,0.5),
        185px -55px 0 2px rgba(255,255,255,0.7),
        225px -25px 0 1px rgba(255,255,255,0.8),
        265px -80px 0 3px rgba(255,255,255,0.6),
        305px -45px 0 1px rgba(255,255,255,0.9),
        345px -15px 0 2px rgba(255,255,255,0.5),
        385px -65px 0 1px rgba(255,255,255,0.7),
        /* ряд 2 */
         30px -110px 0 1px rgba(255,255,255,0.7),
         75px -35px 0 3px rgba(255,255,255,0.9),
        115px -100px 0 1px rgba(255,255,255,0.5),
        160px -20px 0 2px rgba(255,255,255,0.8),
        200px -75px 0 1px rgba(255,255,255,0.6),
        240px -50px 0 3px rgba(255,255,255,0.9),
        280px -10px 0 1px rgba(255,255,255,0.5),
        320px -85px 0 2px rgba(255,255,255,0.7),
        365px -40px 0 1px rgba(255,255,255,0.9),
        410px -60px 0 2px rgba(255,255,255,0.6),
        /* ряд 3 */
         45px -55px 0 2px rgba(255,255,255,0.9),
        100px -15px 0 1px rgba(255,255,255,0.6),
        135px -75px 0 3px rgba(255,255,255,0.8),
        175px -105px 0 1px rgba(255,255,255,0.5),
        215px -30px 0 2px rgba(255,255,255,0.9),
        255px -90px 0 1px rgba(255,255,255,0.7),
        295px -60px 0 3px rgba(255,255,255,0.6),
        340px -25px 0 1px rgba(255,255,255,0.8),
        380px -95px 0 2px rgba(255,255,255,0.5),
        430px -45px 0 1px rgba(255,255,255,0.9);
    animation: sparkle-rise 6s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes sparkle-rise {
    0%   { transform: translateY(0);    opacity: 1; }
    80%  { opacity: 0.6; }
    100% { transform: translateY(-140px); opacity: 0; }
}

/* Діагональна смуга світла (shimmer sweep) */
.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.22) 48%,
        rgba(255,255,255,0.08) 52%,
        transparent 70%
    );
    animation: shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes shimmer-sweep {
    0%   { transform: translateX(-120%); }
    45%  { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

/* Щоб текст хедера був поверх псевдоелементів */
.header .big-emoji,
.header h1 {
    position: relative;
    z-index: 1;
}

/* --- Сяяння заголовку --- */
.header h1 {
    text-shadow:
        0 0 20px rgba(255,255,255,0.9),
        0 0 40px rgba(255,255,255,0.5),
        0 4px 6px rgba(0,0,0,0.15);
    animation: titleGlow 2s ease-in-out infinite;
    letter-spacing: 2px;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255,255,255,0.9), 0 4px 6px rgba(0,0,0,0.15); }
    50%       { text-shadow: 0 0 50px rgba(255,255,255,1), 0 0 80px rgba(255,255,255,0.4), 0 4px 6px rgba(0,0,0,0.15); }
}

/* --- Індивідуальні кольори карток класів --- */
.class-card {
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-width: 3px;
    cursor: pointer;
}

.class-card:nth-child(1) { border-color: #FF6B6B; background: linear-gradient(145deg, #fff5f5, #ffffff); }
.class-card:nth-child(2) { border-color: #FF8E53; background: linear-gradient(145deg, #fff8f0, #ffffff); }
.class-card:nth-child(3) { border-color: #FFD93D; background: linear-gradient(145deg, #fffdf0, #ffffff); }
.class-card:nth-child(4) { border-color: #6BCB77; background: linear-gradient(145deg, #f0fff4, #ffffff); }
.class-card:nth-child(5) { border-color: #4D96FF; background: linear-gradient(145deg, #f0f8ff, #ffffff); }
.class-card:nth-child(6) { border-color: #A855F7; background: linear-gradient(145deg, #fdf0ff, #ffffff); }
.class-card:nth-child(7) { border-color: #F43F5E; background: linear-gradient(145deg, #fff0f3, #ffffff); }

.class-card h3 {
    font-size: 1.25em;
    font-weight: 800;
    letter-spacing: 1px;
}

.class-card:nth-child(1) h3 { color: #FF6B6B; }
.class-card:nth-child(2) h3 { color: #FF8E53; }
.class-card:nth-child(3) h3 { color: #d97706; }
.class-card:nth-child(4) h3 { color: #16a34a; }
.class-card:nth-child(5) h3 { color: #2563eb; }
.class-card:nth-child(6) h3 { color: #7c3aed; }
.class-card:nth-child(7) h3 { color: #e11d48; }

.class-card:hover {
    transform: translateY(-14px) scale(1.06);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* --- Градієнтні кнопки класів --- */
.fc-link {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    font-size: 0.95em;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
    transition: all 0.3s;
}
.fc-link:hover {
    background: linear-gradient(135deg, #ff4444, #FF6B6B);
    box-shadow: 0 8px 20px rgba(255,107,107,0.6);
    transform: scale(1.05) translateY(-2px);
}

.lfc-link {
    background: linear-gradient(135deg, #6BCB77, #4D96FF);
    font-size: 0.95em;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(107,203,119,0.4);
    transition: all 0.3s;
}
.lfc-link:hover {
    background: linear-gradient(135deg, #44bb55, #2d7ae0);
    box-shadow: 0 8px 20px rgba(107,203,119,0.6);
    transform: scale(1.05) translateY(-2px);
}

/* --- Календар — кольорові заголовки місяців --- */
.calendar-month {
    transition: all 0.3s ease;
    border-width: 3px;
}

.calendar-month:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 2;
}

.calendar-month h3 {
    padding: 10px;
    border-radius: 12px;
    font-size: 1.3em;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.calendar-month:nth-child(1) { border-color: #60a5fa; }
.calendar-month:nth-child(1) h3 { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; }

.calendar-month:nth-child(2) { border-color: #a78bfa; }
.calendar-month:nth-child(2) h3 { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }

.calendar-month:nth-child(3) { border-color: #34d399; }
.calendar-month:nth-child(3) h3 { background: linear-gradient(135deg, #10b981, #059669); color: white; }

.calendar-month:nth-child(4) { border-color: #fb923c; }
.calendar-month:nth-child(4) h3 { background: linear-gradient(135deg, #f97316, #ea580c); color: white; }

.calendar-month:nth-child(5) { border-color: #f472b6; }
.calendar-month:nth-child(5) h3 { background: linear-gradient(135deg, #ec4899, #db2777); color: white; }

.calendar-month:nth-child(6) { border-color: #fbbf24; }
.calendar-month:nth-child(6) h3 { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }

/* --- Поточний тиждень --- */
tr.current-week {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    background-size: 200%;
    animation: currentWeekShift 2s linear infinite;
    outline: 3px solid #FF8C00;
    outline-offset: -2px;
}

@keyframes currentWeekShift {
    0%   { background-position: 0%; }
    100% { background-position: 200%; }
}

tr.current-week td {
    color: #5a2d00 !important;
    font-weight: 900 !important;
    font-size: 1.05em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
    background: transparent !important;
    padding: 10px 5px !important;
    position: relative;
}

tr.current-week td::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 6px;
    background: rgba(255,255,255,0.25);
    pointer-events: none;
}

tr.current-week td:first-child {
    border-radius: 8px 0 0 8px;
}
tr.current-week td:last-child {
    border-radius: 0 8px 8px 0;
}

/* --- Сьогоднішня дата --- */
.cal-table td.today {
    background: radial-gradient(circle, #FF4444, #CC0000) !important;
    color: white !important;
    font-weight: 900 !important;
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 3px #FFD700, 0 0 20px rgba(255,50,50,0.8) !important;
    animation: todayPulse 1s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em !important;
}

@keyframes todayPulse {
    0%, 100% { box-shadow: 0 0 0 3px #FFD700, 0 0 15px rgba(255,50,50,0.7); transform: scale(1); }
    50%       { box-shadow: 0 0 0 5px #FFA500, 0 0 30px rgba(255,50,50,1); transform: scale(1.15); }
}

/* --- Вправи: кольорові блоки з ефектом --- */
.exercise-block {
    border-left: 8px solid var(--yellow-color);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.exercise-block:nth-child(odd) {
    border-left-color: var(--fc-color);
}

.exercise-block:nth-child(even) {
    border-left-color: var(--lfc-glow);
}

.exercise-block::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
}

.exercise-block:hover::after {
    left: 150%;
}

.exercise-block:hover {
    transform: translateX(12px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-left-width: 12px;
}

/* --- Відео вправ --- */
.exercise-vid {
    transition: box-shadow 0.3s;
}

.exercise-vid:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* --- Головна кнопка з ефектом блиску --- */
.btn-main {
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.btn-main::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    animation: btnShine 2.5s infinite;
}

@keyframes btnShine {
    0%   { left: -100%; }
    60%  { left: 150%; }
    100% { left: 150%; }
}

.btn-main:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.35);
}

/* --- Zoom кнопки --- */
.zoom-link {
    animation: zoomPulse 2s ease-in-out infinite;
    font-weight: 700;
}

@keyframes zoomPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(77,150,255,0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(77,150,255,0); }
}

/* --- Telegram кнопка --- */
.tg-link {
    animation: tgBounce 2s ease infinite;
    position: relative;
}

@keyframes tgBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,136,204,0.5); }
}

.telegram-button a {
    animation: tgBounce 2s ease infinite;
    position: relative;
}

/* --- Zoom картка --- */
.zoom-card {
    position: relative;
    overflow: hidden;
}

.zoom-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(
        transparent 0deg,
        rgba(255,255,255,0.1) 90deg,
        transparent 180deg
    );
    animation: rotateBg 6s linear infinite;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* --- Блоки розкладу --- */
.day-block {
    transition: all 0.3s ease;
}

.day-block:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.day-title {
    font-size: 1.3em;
    letter-spacing: 1px;
}

/* --- Іконки секцій --- */
.section-icon {
    font-size: 2.5em;
    animation: iconDance 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconDance {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25%       { transform: rotate(-15deg) scale(1.2); }
    75%       { transform: rotate(15deg) scale(1.2); }
}

/* --- Navbar --- */
.nav-bar {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF) 1;
}

.nav-bar a {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border: 2px solid #e0e0e0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-bar a:hover {
    background: linear-gradient(135deg, #FFD93D, #FF8E53);
    color: white;
    transform: scale(1.08) translateY(-2px);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255,165,0,0.4);
}

/* --- Telegram блок --- */
.telegram {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.telegram:hover, .telegram-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,136,204,0.2);
}

/* --- Правила --- */
.rules {
    border-left: 6px solid #FFD93D;
    transition: all 0.3s;
}

.rules:hover {
    border-left-color: #FF6B6B;
    transform: translateX(6px);
}

/* ============================================================
   ЧАСТИНКИ ТА ВИБУХИ (JS-ефекти)
   ============================================================ */

.wow-particle {
    position: fixed;
    bottom: -60px;
    pointer-events: none;
    z-index: 9999;
    animation: floatUp linear forwards;
    user-select: none;
}

@keyframes floatUp {
    0%   { bottom: -60px; opacity: 1; transform: translateX(0) rotate(0deg); }
    50%  { opacity: 0.8; transform: translateX(30px) rotate(180deg); }
    100% { bottom: 105vh; opacity: 0; transform: translateX(-20px) rotate(360deg); }
}

.wow-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    font-size: 22px;
    animation: burstOut 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    user-select: none;
}

@keyframes burstOut {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    60%  { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.2); opacity: 0.9; }
    100% { transform: translate(calc(-50% + var(--tx) * 1.5), calc(-50% + var(--ty) * 1.5)) scale(0); opacity: 0; }
}

/* ============================================================
   SCROLL REVEAL — Анімація появи блоків
   ============================================================ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Низ index.php — 2 рівні колонки --- */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
    margin-bottom: 10px;
}

.bottom-col {
    display: flex;
    flex-direction: column;
}

.bottom-col .section-title {
    margin-top: 0;
}

.bottom-col .rules,
.bottom-col .telegram {
    flex: 1;
    height: 100%;
    box-sizing: border-box;
}

.bottom-col .rules {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bottom-col .rules p {
    text-align: left;
}

.bottom-col .rules .small {
    text-align: center;
}

/* Більший QR-код */
.qr {
    max-width: 220px !important;
    margin: 20px auto !important;
    display: block;
}

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

/* ============================================================
   ПОВНА МОБІЛЬНА АДАПТАЦІЯ
   ============================================================ */

/* ---- Планшет / великий телефон ≤ 768px ---- */
@media (max-width: 768px) {

    body {
        padding: 8px;
        align-items: flex-start;
    }

    .lesson-card {
        border-radius: 24px;
    }
    .lesson-card::before {
        border-radius: 28px;
        inset: -3px;
    }

    .nav-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 15px;
    }

    .header {
        padding: 22px 15px;
    }
    .header h1 {
        font-size: 1.9em;
        letter-spacing: 0;
    }
    .big-emoji {
        font-size: 72px;
    }

    .content {
        padding: 14px;
    }

    /* Сітка класів — 2 колонки на планшеті */
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .class-card {
        padding: 10px 8px;
    }
    .class-card h3 {
        font-size: 1em;
        margin-bottom: 8px;
    }
    .class-link {
        font-size: 0.82em;
        padding: 7px 4px;
    }

    /* Заголовки секцій */
    .section-title h2 {
        font-size: 1.15em;
    }
    .section-icon {
        font-size: 2em;
    }

    /* Календар — 2 місяці в ряд */
    .calendar-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .calendar-month {
        padding: 10px 8px;
    }
    .calendar-month h3 {
        font-size: 1em;
        padding: 7px 5px;
        margin-bottom: 8px;
    }
    .cal-table th,
    .cal-table td {
        padding: 5px 2px;
        font-size: 0.78em;
    }

    .legend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }

    /* Zoom */
    .zoom-card { padding: 15px; }
    .zoom-id {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        font-size: 1em;
    }

    /* Розклад — горизонтальний скрол таблиці */
    .day-block {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .schedule-table {
        min-width: 500px;
    }
    .schedule-table th,
    .schedule-table td {
        padding: 8px 6px;
        font-size: 0.82em;
        white-space: nowrap;
    }

    /* Нижній блок — 1 колонка */
    .bottom-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .inventory {
        flex-direction: column;
        text-align: center;
    }
    .telegram-important {
        flex-direction: column;
        text-align: center;
    }

    /* Вправи */
    .exercise-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ---- Стандартний телефон ≤ 480px ---- */
@media (max-width: 480px) {

    body {
        padding: 5px;
    }

    .lesson-card {
        border-radius: 18px;
    }
    .lesson-card::before {
        border-radius: 22px;
        inset: -2px;
    }

    .header {
        padding: 18px 10px;
    }
    .header h1 {
        font-size: 1.5em;
    }
    .big-emoji {
        font-size: 58px;
    }

    .content {
        padding: 10px;
    }

    /* Класи — 2 компактні колонки */
    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }
    .class-card {
        padding: 8px 6px;
        border-radius: 14px;
    }
    .class-card h3 {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    .class-link {
        font-size: 0.75em;
        padding: 6px 3px;
        border-radius: 18px;
    }

    .section-title h2 {
        font-size: 1em;
    }
    .section-icon {
        font-size: 1.7em;
    }

    /* Календар — 1 місяць в ряд */
    .calendar-full {
        grid-template-columns: 1fr;
    }
    .cal-table th,
    .cal-table td {
        padding: 4px 2px;
        font-size: 0.72em;
        border-radius: 6px;
    }

    /* Кнопки */
    .btn-main {
        font-size: 1.15em;
        padding: 15px 10px;
    }
    .telegram-button a {
        font-size: 1.1em;
        padding: 12px 20px;
    }
    .tg-link {
        font-size: 1em;
        padding: 10px 25px;
    }

    /* Вправи */
    .exercise-block {
        padding: 18px 14px;
    }
    .exercise-item p {
        font-size: 1em;
    }

    /* Hover прибираємо на тач (щоб не зависало) */
    .class-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    }
    .exercise-block:hover {
        transform: none;
    }
}

/* ============================================================
   LESSON BANNER — з'являється тільки якщо сьогодні заняття
   ============================================================ */

.lesson-banner {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9000;
    border-radius: 20px;
    padding: 14px 22px;
    font-weight: 900;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: default;
    color: white;
}

.lesson-banner.fc {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFD93D);
    background-size: 200%;
    box-shadow: 0 0 0 4px white, 0 0 30px rgba(255,107,107,0.7);
    animation: bannerPulseFC 1.5s ease-in-out infinite, bannerBg 3s linear infinite;
}

.lesson-banner.lfc {
    background: linear-gradient(135deg, #6BCB77, #4D96FF, #A6F6FF);
    background-size: 200%;
    box-shadow: 0 0 0 4px white, 0 0 30px rgba(107,203,119,0.7);
    animation: bannerPulseLFC 1.5s ease-in-out infinite, bannerBg 3s linear infinite;
}

.lesson-banner .lesson-date {
    display: block;
    font-size: 0.75em;
    opacity: 0.92;
    margin-top: 4px;
    font-weight: 700;
}

@keyframes bannerPulseFC {
    0%, 100% { box-shadow: 0 0 0 4px white, 0 0 20px rgba(255,107,107,0.5); transform: scale(1); }
    50%       { box-shadow: 0 0 0 7px white, 0 0 45px rgba(255,107,107,0.9); transform: scale(1.06); }
}

@keyframes bannerPulseLFC {
    0%, 100% { box-shadow: 0 0 0 4px white, 0 0 20px rgba(107,203,119,0.5); transform: scale(1); }
    50%       { box-shadow: 0 0 0 7px white, 0 0 45px rgba(107,203,119,0.9); transform: scale(1.06); }
}

@keyframes bannerBg {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .lesson-banner {
        top: 8px;
        right: 8px;
        font-size: 0.9em;
        padding: 10px 15px;
        border-radius: 14px;
    }
}

/* ---- Дуже маленький телефон ≤ 360px ---- */
@media (max-width: 360px) {

    .classes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .class-link {
        font-size: 0.68em;
        padding: 5px 2px;
    }
    .class-card h3 {
        font-size: 0.82em;
    }
    .cal-table th,
    .cal-table td {
        padding: 3px 1px;
        font-size: 0.66em;
    }
    .header h1 {
        font-size: 1.3em;
    }
    .zoom-id span {
        font-size: 0.9em;
        padding: 6px 12px;
    }
}