:root {
  color-scheme: light;
  --paper: #edf3fc;
  --card: #fff;
  --ink: #172943;
  --muted: #637591;
  --line: #d9e3f0;
  --blue: #2456ca;
  --blue-deep: #183e9a;
  --blue-pale: #e7efff;
  --amber: #f0ba60;
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
  --utility: Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); }
button { font: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.page-shell { max-width: 1380px; margin: auto; padding: 0 clamp(18px, 4.2vw, 68px); }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ccdaec; }
.brand { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 23px; font-weight: 800; letter-spacing: -.065em; display: flex; align-items: center; gap: 13px; }
.brand-dot { color: var(--blue); }
.brand-symbol { width: 30px; height: 29px; display: grid; align-content: center; gap: 5px; }
.brand-symbol span { display: block; height: 3px; background: var(--blue); border-radius: 3px; }
.brand-symbol span:nth-child(2) { width: 66%; }
.topbar-note { color: var(--muted); font-size: 13px; letter-spacing: .02em; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 335px); gap: clamp(24px, 6vw, 92px); padding: clamp(45px, 7vw, 93px) 0 65px; align-items: end; }
.eyebrow { margin: 0; font-family: var(--utility); font-size: 11px; letter-spacing: .16em; font-weight: 700; color: var(--blue); display: flex; align-items: center; gap: 13px; }
.eyebrow-line { width: 27px; height: 2px; background: var(--amber); }
h1 { font-family: var(--display); font-size: clamp(45px, 5.8vw, 78px); letter-spacing: -.07em; line-height: 1.06; margin: 24px 0 20px; font-weight: 800; }
h1 em { color: var(--blue); font-style: normal; }
.intro-description { font-size: 17px; line-height: 1.55; color: #4f627e; max-width: 550px; margin: 0 0 34px; }
.group-picker { display: inline-flex; padding: 5px; gap: 4px; background: #e1eaf6; border: 1px solid #d6e1ef; border-radius: 17px; }
.group-button { min-width: 148px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; text-align: left; padding: 10px 16px; display: flex; flex-direction: column; gap: 1px; transition: background .2s, color .2s, transform .2s; }
.group-button:hover { transform: translateY(-2px); }
.group-button.active { background: var(--card); color: var(--ink); box-shadow: 0 4px 14px #3153871a; }
.group-number { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -.04em; }
.group-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.today-card { background: var(--blue); color: #fff; border-radius: 23px; padding: 28px 29px 31px; min-height: 295px; position: relative; box-shadow: 0 24px 44px #1948a72a; overflow: hidden; }
.today-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -52px; bottom: -62px; border: 28px solid #ffffff1a; border-radius: 50%; }
.today-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--utility); font-size: 11px; font-weight: 700; letter-spacing: .13em; opacity: .85; }
.today-spark { font-size: 22px; color: var(--amber); }
.today-number { font-family: var(--display); font-size: 83px; font-weight: 800; letter-spacing: -.095em; line-height: 1; margin-top: 25px; }
.today-label { margin: -1px 0 22px; font-size: 16px; font-weight: 700; }
.today-divider { height: 1px; background: #ffffff58; margin: 0 0 18px; }
.today-next-label { font-size: 12px; margin: 0 0 5px; color: #d8e5ff; }
.today-next { font-size: 14px; line-height: 1.4; font-weight: 700; margin: 0; max-width: 250px; }

.timetable { border-top: 1px solid #cbd9eb; padding-top: 39px; padding-bottom: 95px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-eyebrow { font-size: 10px; }
h2 { font-family: var(--display); font-size: clamp(30px, 3.2vw, 43px); letter-spacing: -.06em; line-height: 1.12; margin: 11px 0 5px; }
.week-range { margin: 0; color: var(--muted); font-size: 14px; }
.week-controls { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.week-controls button { border: 1px solid var(--line); background: #ffffffad; color: var(--ink); height: 44px; transition: border-color .2s, background .2s; }
.week-controls button:hover:not(:disabled) { border-color: var(--blue); background: #fff; }
.week-controls button:disabled { opacity: .45; cursor: not-allowed; }
.arrow-button { width: 45px; font-size: 23px !important; border-radius: 12px; line-height: 1; }
.this-week { border-radius: 12px; padding: 0 15px; font-weight: 700; font-size: 13px !important; }
.status { min-height: 21px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.status:empty { display: none; }
.status.warning { color: #8b580d; }
.status.error { border-radius: 12px; background: #fff; border: 1px solid #edcbcb; color: #9a3737; padding: 15px 17px; }
.day-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.day-card { background: var(--card); border: 1px solid #dce5f1; border-radius: 17px; overflow: hidden; box-shadow: 0 7px 25px #203c6510; }
.day-card.is-today { border-color: #8cacec; box-shadow: 0 10px 33px #2456ca19; }
.day-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border-bottom: 1px solid #e7edf5; }
.day-title { display: flex; align-items: baseline; gap: 11px; min-width: 0; }
.day-name { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.day-date { color: var(--muted); font-family: var(--utility); font-size: 12px; white-space: nowrap; }
.day-count { background: #eef3fa; color: #637591; padding: 5px 9px; font-family: var(--utility); font-size: 11px; border-radius: 20px; white-space: nowrap; }
.is-today .day-count { color: #fff; background: var(--blue); }
.lessons { padding: 8px 21px 13px; }
.lesson { display: grid; grid-template-columns: 76px 16px minmax(0, 1fr); column-gap: 13px; position: relative; padding: 15px 0; }
.lesson:not(:last-child)::before { content: ""; position: absolute; left: 83px; top: 26px; bottom: -20px; width: 1px; background: #d8e4f5; }
.lesson-time { font-family: var(--utility); font-size: 14px; font-weight: 700; letter-spacing: -.04em; color: var(--blue); padding-top: 1px; white-space: nowrap; }
.lesson-end { font-size: 11px; color: var(--muted); margin-top: 3px; }
.lesson-dot { width: 11px; height: 11px; background: #fff; border: 3px solid var(--blue); border-radius: 50%; margin-top: 3px; z-index: 1; }
.lesson-content { min-width: 0; }
.lesson-title { font-size: 15px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; overflow-wrap: anywhere; }
.lesson-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 5px; }
.lesson-chip { font-size: 11px; color: #4e617e; background: #edf3fa; border-radius: 6px; padding: 3px 7px; line-height: 1.3; }
.lesson-chip.room { color: #744805; background: #fff2d9; }
.lesson-teacher { color: #6b7a90; font-size: 12px; line-height: 1.35; margin: 7px 0 0; }
.empty-day { padding: 28px 22px 31px; color: var(--muted); font-size: 13px; }
.loading-card { min-height: 170px; background: linear-gradient(100deg,#fff,#f5f8fd,#fff); background-size: 200% 100%; animation: shimmer 1.7s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.footer { display: flex; flex-wrap: wrap; gap: 11px 25px; justify-content: space-between; border-top: 1px solid #ccdaec; padding: 21px 0 29px; color: var(--muted); font-size: 12px; }

@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 30px; } .today-card { min-height: 240px; max-width: none; } .today-number { margin-top: 10px; } }
@media (max-width: 680px) {
  .topbar { height: 68px; } .brand { font-size: 21px; } .topbar-note { display: none; }
  .intro { padding: 40px 0 40px; } h1 { font-size: clamp(40px, 10vw, 60px); margin-top: 20px; } h1 br { display: none; }
  .intro-description { font-size: 15px; margin-bottom: 23px; }
  .group-picker { display: flex; } .group-button { min-width: 0; flex: 1; }
  .today-card { padding: 24px; min-height: 225px; } .today-number { font-size: 68px; }
  .section-heading { display: block; margin-bottom: 23px; } .week-controls { margin-top: 20px; }
  .day-grid { grid-template-columns: 1fr; gap: 12px; } .day-heading { padding: 16px 18px; } .lessons { padding: 6px 16px 10px; }
  .lesson { column-gap: 9px; grid-template-columns: 67px 13px minmax(0,1fr); }
  .lesson:not(:last-child)::before { left: 73px; } .lesson-time { font-size: 13px; } .lesson-title { font-size: 14px; }
  .timetable { padding-bottom: 55px; } .footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
