/* Общие стили шапки и подвала для всех страниц, кроме расписания.
   Переменные заданы внутри блоков, поэтому не зависят от стилей страницы. */
.site-header, .site-footer, .backup-banner {
  --l-primary: #0f3d68; --l-primary-dark: #092744; --l-primary-light: #e0ecf8;
  --l-bg: #f1f5f9; --l-card: #ffffff; --l-text: #0f172a; --l-muted: #475569; --l-border: #cbd5e1;
  --l-shadow: 0 4px 16px rgba(15, 61, 104, 0.07); --l-shadow-hover: 0 8px 24px rgba(15, 61, 104, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}
.site-header { background: var(--l-card); border-bottom: 1px solid var(--l-border); position: relative; z-index: 100; box-shadow: var(--l-shadow); }
.site-header .container, .site-footer .container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; width: 100%; flex: none; }
.site-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; gap: 1rem; }
.site-header .brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--l-text); }
.site-header .brand-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--l-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; flex-shrink: 0; }
.site-header .brand-text h1 { font-size: 1.12rem; font-weight: 800; color: var(--l-primary); line-height: 1.2; margin: 0; }
.site-header .brand-text span { font-size: 0.78rem; color: var(--l-muted); display: block; margin-top: 0.1rem; }
.site-header .main-nav { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.site-header .nav-dropdown { position: relative; }
.site-header .nav-drop-btn, .site-header .nav-link {
  background: var(--l-bg); border: 1px solid transparent; font-family: inherit; color: var(--l-text);
  font-weight: 700; font-size: 0.88rem; padding: 0.55rem 0.9rem; border-radius: 8px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem; text-decoration: none; transition: all 0.2s ease;
}
.site-header .nav-drop-btn:hover, .site-header .nav-link:hover, .site-header .nav-dropdown.active .nav-drop-btn { background: var(--l-primary-light); color: var(--l-primary); border-color: #bfdbfe; }
.site-header .nav-drop-content {
  position: absolute; top: calc(100% + 0.5rem); left: 0; background: var(--l-card); border: 1px solid var(--l-border);
  border-radius: 12px; box-shadow: var(--l-shadow-hover); min-width: 240px; display: none; flex-direction: column;
  padding: 0.5rem; z-index: 200; opacity: 0; transform: translateY(-10px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.site-header .nav-dropdown.active .nav-drop-content { display: flex; opacity: 1; transform: translateY(0); }
.site-header .nav-drop-content a { text-decoration: none; color: var(--l-text); font-size: 0.88rem; font-weight: 600; padding: 0.6rem 0.8rem; border-radius: 8px; }
.site-header .nav-drop-content a:hover { background: var(--l-bg); color: var(--l-primary); }

.site-footer { background: var(--l-primary-dark); color: #cbd5e1; padding: 2.25rem 0 1.5rem; margin-top: auto; font-size: 0.86rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.site-footer .footer-title { color: #fff; font-weight: 700; font-size: 0.98rem; margin-bottom: 0.55rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.2rem; font-size: 0.78rem; line-height: 1.5; color: #94a3b8; text-align: center; }
.site-footer .footer-meta { margin-top: 0.8rem; text-align: center; font-size: 0.76rem; color: #94a3b8; }
.site-footer .footer-meta a { color: #94a3b8; text-decoration: underline; }
/* Скрытая кнопка входа в редактор: выглядит как обычный знак © */
.site-footer .footer-meta a.admin-dot { color: inherit; text-decoration: none; cursor: default; padding: 0 0.2rem; }
.site-footer .footer-meta a.admin-dot:hover { color: inherit; text-decoration: none; }

.backup-banner { background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; padding: 0.5rem 1rem; font-size: 0.85rem; text-align: center; font-weight: 600; }
.backup-banner a { color: #78350f; text-decoration: underline; }

@media (max-width: 768px) {
  .site-header .container, .site-footer .container { padding: 0 0.85rem; }
  .site-header .header-inner { padding: 0.85rem; gap: 0.75rem; }
  .site-header .brand { width: 100%; }
  .site-header .main-nav { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.4rem; margin-top: 0.25rem; }
  .site-header .nav-drop-btn, .site-header .nav-link { width: 100%; justify-content: center; padding: 0.6rem 0.5rem; font-size: 0.85rem; border-color: var(--l-border); }
  .site-header .nav-dropdown { position: static; }
  .site-header .nav-drop-content { position: absolute; top: 100%; left: 0.85rem; right: 0.85rem; width: calc(100% - 1.7rem); margin-top: -0.5rem; background: var(--l-card); }
}
