/* =============================================================================
   StatDistrict — интерфейс школы
   -----------------------------------------------------------------------------
   Оболочка кабинета школы: шапка, горизонтальная навигация, страницы входа.
   Подключается после tokens.css и base.css.
   ============================================================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--sky-mesh);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.34;
  animation: glassOrb 14s var(--ease) infinite alternate;
}

body::before {
  top: -10rem;
  left: -7rem;
  width: 30rem;
  height: 30rem;
  background: #7dd3fc;
}

body::after {
  top: 10rem;
  right: -10rem;
  width: 26rem;
  height: 26rem;
  background: #38bdf8;
  animation-delay: -4s;
}

@keyframes glassOrb {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, 28px) scale(1.08); }
}

.app-header,
.app-nav,
main.container,
.app-footer {
  position: relative;
  z-index: 1;
}

.app-header { z-index: 50; }
.app-nav { z-index: 40; }

body:has(.auth-shell)::before,
body:has(.auth-shell)::after {
  display: none;
}

/* -----------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-bottom: 1px solid var(--glass-edge);
  box-shadow: var(--sh-glass);
  padding-left: var(--safe-left, 0px);
  padding-right: var(--safe-right, 0px);
}

.app-header .container {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 22%;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.24);
}


.brand-copy { min-width: 0; }

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  font-weight: 680;
  letter-spacing: -0.025em;
  color: var(--ink) !important;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted) !important;
  font-size: var(--text-xs);
  font-weight: 500;
}

.school-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(360px, 44vw);
  padding: 0.38rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: var(--sh-xs);
}

.school-chip i { flex: 0 0 auto; }

/* -----------------------------------------------------------------------------
   Навигация
   -------------------------------------------------------------------------- */
.app-nav {
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border-bottom: 1px solid var(--line) !important;
  padding: 0.35rem 0;
  position: sticky;
  top: 64px;
  z-index: 40;
}

.app-nav .navbar-nav { gap: 0.2rem; }

.app-nav .nav-link {
  position: relative;
  color: var(--ink-soft) !important;
  font-weight: 550;
  font-size: var(--text-base);
  padding: 0.48rem 0.95rem !important;
  border-radius: var(--r-pill) !important;
  transition: color 0.16s var(--ease), background 0.16s var(--ease),
    box-shadow 0.16s var(--ease), transform 0.2s var(--ease-spring, var(--ease));
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.app-nav .nav-link i { font-size: 1.02em; opacity: 0.7; }
.app-nav .nav-link:hover {
  color: var(--brand-700) !important;
  background: var(--surface);
}
.app-nav .nav-link:hover i { opacity: 1; }

.app-nav .nav-link.active {
  color: var(--brand-800) !important;
  font-weight: 650;
  background: var(--glass-strong);
  box-shadow: none;
}
.app-nav .nav-link.active i { opacity: 1; }

.app-nav .nav-link.active::after { display: none; }

.navbar-toggler {
  border-color: var(--line);
  padding: 0.3rem 0.5rem;
}
.navbar-toggler:focus { box-shadow: var(--sh-focus); }

/* -----------------------------------------------------------------------------
   Контент
   -------------------------------------------------------------------------- */
main.container {
  padding-top: 1.5rem !important;
  padding-bottom: 2.5rem !important;
  animation: pageIn 0.32s var(--ease);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.app-footer {
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  padding: 1.1rem 0 1.6rem;
  font-size: var(--text-xs);
  background: transparent;
}

/* Заголовок страницы школьного кабинета */
.school-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.school-page-head h1,
.school-page-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: 680;
  letter-spacing: -0.024em;
}

.school-page-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: var(--text-base);
}

/* -----------------------------------------------------------------------------
   Плашка со сроками сдачи
   -------------------------------------------------------------------------- */
.deadline-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: var(--r-md);
  border: 1px solid var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn);
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: var(--text-base);
}

.deadline-banner.is-passed {
  border-color: var(--bad-line);
  background: var(--bad-bg);
  color: var(--bad);
}

.deadline-banner.is-open {
  border-color: var(--ok-line);
  background: var(--ok-bg);
  color: var(--ok);
}

/* -----------------------------------------------------------------------------
   Страницы входа и выбора школы
   -------------------------------------------------------------------------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: var(--sky-mesh);
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: glassOrb 12s var(--ease) infinite alternate;
}

.auth-shell::before {
  width: 32rem;
  height: 32rem;
  top: -8rem;
  left: -6rem;
  background: rgba(125, 211, 252, 0.7);
}

.auth-shell::after {
  width: 26rem;
  height: 26rem;
  bottom: -7rem;
  right: -6rem;
  background: rgba(14, 165, 233, 0.48);
  animation-delay: -3s;
}

.auth-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-sky-chart {
  position: absolute;
  width: min(58vw, 680px);
  height: auto;
  right: -4%;
  bottom: 6%;
  opacity: 0.16;
  filter: drop-shadow(0 18px 36px rgba(12, 74, 110, 0.12));
}

.auth-sky-beam {
  position: absolute;
  width: 44vw;
  height: 140%;
  top: -20%;
  left: 8%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 70%);
  transform: rotate(18deg);
  opacity: 0.45;
  filter: blur(18px);
}

.auth-layout {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-glass);
  overflow: hidden;
  animation: pageIn 0.5s var(--ease);
}

.auth-layout--select {
  align-items: stretch;
}

.auth-layout--select .auth-visual {
  min-height: 0;
}

.auth-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: 560px;
  padding: 1.5rem 1.6rem 1.6rem;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(186, 230, 253, 0.2), transparent 72%);
  pointer-events: none;
}

.auth-visual-art {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-visual-img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  object-position: center;
  animation: floatY 5.5s var(--ease) infinite alternate;
  filter: drop-shadow(0 18px 28px rgba(12, 74, 110, 0.18));
}

.auth-visual-mark {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  flex: 0 0 auto;
  padding: 0.32rem 0.75rem 0.32rem 0.32rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  box-shadow: none;
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 680;
  letter-spacing: -0.02em;
}

.auth-visual-mark img {
  width: 30px;
  height: 30px;
  border-radius: 22%;
  display: block;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.22);
}

.auth-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--glass-edge);
  color: var(--ink-soft);
  font-size: var(--text-xs);
  font-weight: 620;
  box-shadow: none;
  animation: riseIn 0.55s var(--ease) both;
}
.auth-chips li:nth-child(1) { animation-delay: 0.18s; }
.auth-chips li:nth-child(2) { animation-delay: 0.26s; }
.auth-chips li:nth-child(3) { animation-delay: 0.34s; }

.auth-chips i {
  color: var(--brand-600);
  font-size: 0.95em;
}

.auth-visual-copy {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
}

.auth-visual-copy .eyebrow {
  color: var(--brand-700);
  margin-bottom: 0.35rem;
}

.auth-visual-copy h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.034em;
  line-height: 1.15;
  background: var(--ink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-visual-copy p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-md);
  max-width: 36ch;
  line-height: 1.45;
}

.auth-card {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: 100%;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 2rem 2.1rem;
}

.auth-card--solo {
  width: min(440px, 100%);
}

@keyframes floatY {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-visual {
    min-height: 0;
    padding: 1.25rem 1.25rem 0.5rem;
    order: -1;
  }

  .auth-card {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
    padding: 1.4rem 1.25rem 1.35rem;
  }

  .auth-visual-img {
    max-height: 200px;
  }

  .auth-visual-copy h2 { font-size: 1.25rem; }
  .auth-visual-copy p { font-size: var(--text-sm); }
}

.auth-card--wide { width: min(720px, 100%); }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.auth-brand img {
  width: 56px;
  height: 56px;
  border-radius: 22%;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.26);
}

.auth-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.034em;
  line-height: 1.15;
  background: var(--ink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-subtitle {
  color: var(--muted);
  font-size: var(--text-md);
  margin: 0 0 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.auth-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  margin-top: 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.auth-footer a { color: var(--brand-700); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer-sep { color: var(--n-300); font-weight: 500; }

/* Поле ввода с иконкой и кнопкой показа пароля */
.auth-input-wrap { position: relative; margin-bottom: 1rem; }
.auth-input-wrap .form-control {
  padding-left: 2.55rem;
  height: 48px;
  border-radius: 999px;
  background: var(--surface);
  border-color: var(--glass-edge);
}

.auth-input-wrap .field-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}

.auth-input-wrap .toggle-visibility {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0.2rem 0.3rem;
  border-radius: var(--r-xs);
  cursor: pointer;
}
.auth-input-wrap .toggle-visibility:hover { color: var(--ink); background: var(--surface-3); }

/* Совместимость со старой разметкой входа */
.login-container { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.login-box, .login-card { width: min(430px, 100%); }

/* -----------------------------------------------------------------------------
   Карточки выбора школы
   -------------------------------------------------------------------------- */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.7rem;
}

.school-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--sh-xs);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
    transform 0.15s var(--ease);
}

.school-option:hover {
  border-color: var(--brand-300);
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
  color: var(--brand-800);
}

.school-option.is-selected {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-900);
  box-shadow: var(--sh-focus);
}

.school-option i { color: var(--brand-500); flex: 0 0 auto; }

/* -----------------------------------------------------------------------------
   Колокольчик уведомлений
   -------------------------------------------------------------------------- */
.notify-bell { position: relative; }
.notify-bell-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--glass-edge);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: var(--sh-xs);
}
.notify-bell-btn:hover,
.notify-bell-btn[aria-expanded="true"] {
  color: var(--brand-800);
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.notify-bell-btn i { font-size: 1.15rem; }
.notify-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bad-500);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.notify-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, calc(100vw - 24px));
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  z-index: 80;
  overflow: hidden;
}
.notify-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.notify-panel-head strong { font-size: var(--text-sm); }
.notify-list { max-height: 360px; overflow: auto; }
.notify-empty {
  margin: 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}
.notify-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  text-decoration: none !important;
  color: inherit;
  border-bottom: 1px solid var(--line-soft);
}
.notify-item:hover { background: var(--surface-2, #f8fafc); }
.notify-item.is-unread { background: var(--brand-50); }
.notify-item-copy { min-width: 0; flex: 1; }
.notify-item-copy strong {
  display: block;
  font-size: var(--text-sm);
  margin-bottom: 0.15rem;
}
.notify-item-copy span {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-xs);
  line-height: 1.4;
}
.notify-item-copy time {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 11px;
}
.notify-kind {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.notify-kind--deadline { background: var(--warn-bg); color: var(--warn); }
.notify-kind--certificate_rejected { background: var(--bad-bg); color: var(--bad); }
.notify-kind--protocol_unfilled { background: var(--info-bg); color: var(--info); }
.notify-panel-foot {
  display: block;
  padding: 0.7rem 0.9rem;
  font-size: var(--text-sm);
  font-weight: 650;
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--brand-700) !important;
}
.notify-flash {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border-radius: var(--r-md);
  margin-bottom: 0.85rem;
  font-size: var(--text-sm);
}
.notify-flash i { margin-top: 0.1rem; }
.notify-flash.is-ok { background: var(--ok-bg); color: var(--ok); }
.notify-flash.is-bad { background: var(--bad-bg); color: var(--bad); }
.notify-flash.is-warn { background: var(--warn-bg); color: var(--warn); }
.notify-full-list { list-style: none; margin: 0; padding: 0; }
.notify-full-item { border-bottom: 1px solid var(--line-soft); }
.notify-full-item.is-unread { background: var(--brand-50); }
.notify-full-link {
  display: flex;
  gap: 0.85rem;
  padding: 0.95rem 1.05rem;
  text-decoration: none !important;
  color: inherit;
}
.notify-full-link:hover { background: var(--surface-2, #f8fafc); }
.notify-full-copy { min-width: 0; }
.notify-full-copy strong { display: block; margin-bottom: 0.2rem; }
.notify-full-copy span {
  display: block;
  white-space: pre-wrap;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.notify-full-copy time { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 12px; }

/* -----------------------------------------------------------------------------
   Hero / иллюстрации (Liquid Glass)
   -------------------------------------------------------------------------- */
.dash-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  border: 1px solid var(--glass-edge);
  box-shadow: var(--sh-glass);
  overflow: hidden;
  position: relative;
  animation: pageIn 0.45s var(--ease);
}

.dash-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.4), transparent 68%);
  pointer-events: none;
}

.dash-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.dash-hero-copy .eyebrow {
  color: var(--brand-700);
  margin-bottom: 0.35rem;
}

.dash-hero-copy h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  background: var(--ink-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dash-hero-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--text-md);
  max-width: 42ch;
  line-height: 1.45;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.dash-hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.dash-hero-art img {
  width: min(100%, 360px);
  height: auto;
  max-height: 220px;
  object-fit: contain;
  mix-blend-mode: multiply;
  animation: floatY 5.5s var(--ease) infinite alternate;
  filter: drop-shadow(0 16px 24px rgba(12, 74, 110, 0.14));
}

@media (max-width: 767.98px) {
  .dash-hero {
    grid-template-columns: 1fr;
    padding: 1.1rem 1.15rem 0.85rem;
  }

  .dash-hero-art { order: -1; min-height: 0; }
  .dash-hero-art img { max-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .dash-hero-art img,
  .auth-visual-img,
  .auth-sky-chart,
  .brand-logo,
  .auth-brand img,
  body::before,
  body::after,
  .auth-shell::before,
  .auth-shell::after,
  .app-nav .nav-link:hover {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .auth-sky-chart,
  .auth-sky-beam { display: none; }
}

/* -----------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .brand-sub { display: none; }
  .brand-logo { width: 36px; height: 36px; }
  .app-nav { top: 0; position: static; }
  .app-nav .nav-link { padding: 0.5rem 0.6rem !important; }
  .school-chip { max-width: 44vw; }
  main.container { padding-top: 1rem !important; }
}
