* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f5;
  color: #333;
  font-size: 14px;
}

/* === ЛОГИН === */
.login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #e8eef5 0%, #f5f7fa 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: #1a3a6b;
  color: white;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.login-header .phone { opacity: 0.85; }

.login-card {
  background: white;
  padding: 40px 50px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-width: 420px;
  text-align: center;
}

.login-card h2 {
  color: #1a3a6b;
  margin-bottom: 10px;
  font-size: 22px;
}

.login-card p {
  color: #888;
  margin-bottom: 25px;
  font-size: 13px;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-option {
  padding: 14px 18px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-option:hover {
  border-color: #1a73e8;
  background: #f5f9ff;
}

.user-option .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.user-option .info { flex: 1; }
.user-option .info .name { font-weight: 600; color: #222; }
.user-option .info .role { font-size: 12px; color: #888; margin-top: 2px; }

/* === ТОПБАР === */
.topbar {
  background: #1a3a6b;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.logo { font-weight: 700; font-size: 15px; }
.org { font-size: 13px; opacity: 0.85; }

.topbar-nav {
  display: flex;
  gap: 4px;
  flex: 2;
  justify-content: center;
}

.topbar-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: background 0.2s;
  cursor: pointer;
}

.topbar-nav a:hover, .topbar-nav a.active {
  background: rgba(255,255,255,0.15);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  font-size: 13px;
}

.user-badge {
  background: rgba(255,255,255,0.15);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.logout-btn:hover { background: rgba(255,255,255,0.15); }

/* === КОНТЕНТ === */
.content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 30px 24px;
}

h1 {
  font-size: 28px;
  font-weight: 400;
  color: #333;
  margin-bottom: 20px;
}

h2 {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
}

/* === КАРТОЧКИ === */
.card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

/* === ФИЛЬТРЫ === */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filters select, .filters input {
  padding: 10px 14px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 150px;
}

.btn-primary {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}
.btn-primary:hover { background: #1557b0; }

.btn-secondary {
  background: white;
  color: #1a73e8;
  border: 1px solid #1a73e8;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.btn-secondary:hover { background: #f0f7ff; }

.btn-danger {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

/* === ТАБЛИЦЫ === */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

th {
  background: #f6f8fa;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  border-bottom: 1px solid #e8ecf0;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
}

tr:hover td { background: #f8fafd; }

/* === РАСПИСАНИЕ === */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.schedule-day {
  background: white;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.schedule-day h4 {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.lesson-card {
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #f8fafd;
  border-left: 3px solid #1a73e8;
  font-size: 12px;
}

.lesson-card .subject { font-weight: 600; color: #1a3a6b; margin-bottom: 4px; }
.lesson-card .room { color: #888; }
.lesson-card .time { color: #1a73e8; font-size: 11px; margin-top: 4px; }

/* === ОБЪЯВЛЕНИЯ === */
.announcement {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  border-left: 4px solid #1a73e8;
  background: #f8fafd;
  cursor: pointer;
  transition: transform 0.15s;
}
.announcement:hover { transform: translateX(4px); }
.announcement.alt { background: #fdf2f2; border-left-color: #e74c3c; }
.announcement.alt2 { background: #f0f9f4; border-left-color: #27ae60; }
.announcement .title { font-weight: 600; color: #1a3a6b; margin-bottom: 6px; }
.announcement .text { color: #666; font-size: 13px; }
.announcement .date { color: #aaa; font-size: 11px; margin-top: 6px; }

/* === ГЛАВНАЯ === */
.hero {
  background: linear-gradient(135deg, #1a3a6b 0%, #2a5298 100%);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero .date-big { font-size: 32px; font-weight: 300; }
.hero .time-big { font-size: 48px; font-weight: 300; }
.hero .next-lesson { text-align: right; }
.hero .next-lesson .label { font-size: 12px; opacity: 0.8; }
.hero .next-lesson .value { font-size: 20px; font-weight: 500; }

/* === БЛОКИ === */
.block-title {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin-bottom: 14