/* ==========================================================================
   SV CHROME — шапка, навигация, уведомления, футер osnova.ru
   Требует sv-tokens.css и sv-theme.css.
   Классы совместимы с текущей разметкой header.php/footer.php.
   ========================================================================== */

/* ==========================================================================
   1. ШАПКА
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--sv-z-header);
  min-height: var(--sv-header-h);
  background: var(--sv-surface);
  border-bottom: 1px solid var(--sv-line);
  box-shadow: var(--sv-shadow-header);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--sv-space-7);
  width: 100%;
  max-width: var(--sv-container);
  min-height: var(--sv-header-h);
  margin-inline: auto;
  padding: 10px var(--sv-gutter);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: var(--sv-tap-target);
  color: var(--sv-ink);
  text-decoration: none;
}
.site-logo:hover { color: var(--sv-ink); }
.site-logo img,
.site-logo .site-logo__img {
  width: auto;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-logo .logo-divider {
  width: 3px;
  height: 30px;
  border-radius: 2px;
  background: var(--sv-gold-500);
  flex: 0 0 auto;
}
.site-logo .logo-text { line-height: 1.2; }
.site-logo .logo-text__title,
.site-logo .logo-text__sub { display: block; }
.site-logo .logo-text__title {
  font-family: var(--sv-font-display);
  font-size: 15px;
  font-weight: var(--sv-fw-semibold);
  color: var(--sv-ink);
  white-space: nowrap;
}
.site-logo .logo-text__sub {
  margin-top: 1px;
  font-size: var(--sv-fs-xs);
  font-weight: var(--sv-fw-bold);
  color: var(--sv-gold-700);
  white-space: nowrap;
}

/* --- Десктопное меню ---------------------------------------------------- */
.site-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px 20px;
  min-width: 0;
}
.site-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--sv-ink);
  font-size: 14px;
  font-weight: var(--sv-fw-medium);
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--sv-dur-base) var(--sv-ease-standard);
}
.site-nav a:hover { color: var(--sv-gold-700); }
.site-nav a.active { color: var(--sv-gold-700); }
.site-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sv-gold-500);
}

/* --- Правый блок -------------------------------------------------------- */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-login {
  padding: 10px 6px;
  color: var(--sv-ink);
  font-size: 14px;
  font-weight: var(--sv-fw-medium);
  text-decoration: none;
  white-space: nowrap;
}
.header-login:hover { color: var(--sv-gold-700); }

.header-user {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--sv-ink);
  font-size: var(--sv-fs-md);
  font-weight: var(--sv-fw-semibold);
  text-decoration: none;
}
.header-user:hover { color: var(--sv-gold-700); }
.header-user .user-name {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-user .role-badge {
  padding: 3px 8px;
  border-radius: var(--sv-radius-pill);
  font-size: var(--sv-fs-2xs);
  font-weight: var(--sv-fw-extrabold);
  line-height: 1.4;
  white-space: nowrap;
}
.header-user .role-badge--admin { background: var(--sv-surface-2); color: var(--sv-navy-700); }
.header-user .role-badge--secretary { background: var(--sv-gold-050); color: var(--sv-gold-700); }

@media (min-width: 768px) {
  .header-user { display: flex; }
}

/* --- Бургер ------------------------------------------------------------- */
.hamburger {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--sv-line);
  border-radius: 10px;
  background: var(--sv-surface);
  cursor: pointer;
  transition: background-color var(--sv-dur-fast) var(--sv-ease-standard);
}
.hamburger:hover { background: var(--sv-surface-2); }
.hamburger span {
  position: absolute;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--sv-ink);
  transition: transform var(--sv-dur-slow) var(--sv-ease-standard),
              opacity var(--sv-dur-fast) var(--sv-ease-standard);
}
.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(2) { transform: translateY(0); }
.hamburger span:nth-child(3) { transform: translateY(6px); }
.hamburger.active span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

/* ==========================================================================
   2. ВЫЕЗЖАЮЩЕЕ МЕНЮ
   ========================================================================== */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--sv-z-overlay);
  background: var(--sv-navy-a55);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--sv-dur-slow) var(--sv-ease-standard);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

.slide-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--sv-z-drawer);
  display: flex;
  flex-direction: column;
  width: 320px;
  max-width: 100%;
  height: 100%;
  padding: var(--sv-space-4);
  background: var(--sv-surface);
  box-shadow: -4px 0 24px var(--sv-navy-a08);
  transform: translateX(100%);
  transition: transform var(--sv-dur-slow) var(--sv-ease-standard);
  overflow-y: auto;
}
.slide-menu.open { transform: translateX(0); }

.slide-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sv-space-3);
  margin-bottom: var(--sv-space-3);
  border-bottom: 1px solid var(--sv-line);
}
.slide-menu-header span {
  font-family: var(--sv-font-display);
  font-size: var(--sv-fs-lg);
  font-weight: var(--sv-fw-semibold);
  color: var(--sv-ink);
}
.slide-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--sv-tap-target);
  height: var(--sv-tap-target);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sv-text);
  cursor: pointer;
  transition: background-color var(--sv-dur-fast) var(--sv-ease-standard);
}
.slide-menu-close:hover { background: var(--sv-surface-2); color: var(--sv-ink); }

.slide-menu-user {
  padding: 4px 6px 14px;
  margin-bottom: var(--sv-space-2);
  border-bottom: 1px solid var(--sv-line);
}
.slide-menu-user .name {
  font-size: 14px;
  font-weight: var(--sv-fw-bold);
  color: var(--sv-ink);
}
.slide-menu-user .email {
  margin-top: 2px;
  color: var(--sv-text);
  font-size: var(--sv-fs-sm);
  overflow-wrap: anywhere;
}

.slide-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slide-nav a {
  display: flex;
  align-items: center;
  gap: var(--sv-space-3);
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--sv-ink);
  font-size: var(--sv-fs-base);
  font-weight: var(--sv-fw-medium);
  text-decoration: none;
  transition: background-color var(--sv-dur-fast) var(--sv-ease-standard),
              color var(--sv-dur-fast) var(--sv-ease-standard);
}
.slide-nav a:hover { background: var(--sv-surface-2); color: var(--sv-ink); }
.slide-nav a.active { background: var(--sv-gold-050); color: var(--sv-gold-700); }
.slide-nav a svg { flex: 0 0 auto; }
.slide-nav a .nav-label { font-size: 14px; }
.slide-nav .divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--sv-line);
}

/* ==========================================================================
   3. НИЖНЯЯ НАВИГАЦИЯ (мобильная)
   ========================================================================== */

.bottom-nav {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1020;
  align-items: center;
  justify-content: space-around;
  min-height: var(--sv-bottom-nav-h);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--sv-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  padding: 5px 6px;
  border-radius: 10px;
  color: var(--sv-text);
  font-size: var(--sv-fs-2xs);
  font-weight: var(--sv-fw-semibold);
  text-decoration: none;
  transition: color var(--sv-dur-fast) var(--sv-ease-standard);
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a:hover { color: var(--sv-navy-600); }
.bottom-nav a.active { color: var(--sv-gold-700); }

/* ==========================================================================
   4. УВЕДОМЛЕНИЯ
   ========================================================================== */

.notif-wrap { position: relative; }

.notif-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sv-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--sv-dur-fast) var(--sv-ease-standard);
}
.notif-btn:hover { background: var(--sv-surface-2); }
.notif-btn.is-active { background: var(--sv-gold-050); color: var(--sv-gold-700); }

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--sv-danger);
  box-shadow: 0 0 0 2px var(--sv-surface);
  color: var(--sv-white);
  font-size: var(--sv-fs-2xs);
  font-weight: var(--sv-fw-extrabold);
  line-height: 1;
}

.notif-panel {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: var(--sv-z-dropdown);
  display: none;
  width: 360px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius-2xl);
  background: var(--sv-surface);
  box-shadow: var(--sv-shadow-panel);
}
.notif-panel.open { display: block; }

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sv-line);
}
.notif-head span {
  color: var(--sv-ink);
  font-size: var(--sv-fs-md);
  font-weight: var(--sv-fw-bold);
}
.notif-head button {
  padding: 4px 8px;
  border: 0;
  border-radius: var(--sv-radius-xs);
  background: transparent;
  color: var(--sv-navy-600);
  font-size: var(--sv-fs-sm);
  font-weight: var(--sv-fw-semibold);
  cursor: pointer;
}
.notif-head button:hover { background: var(--sv-surface-2); }

.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sv-line-soft);
  color: inherit;
  transition: background-color var(--sv-dur-fast) var(--sv-ease-standard);
}
.notif-item:hover { background: var(--sv-bg); }
.notif-item.unread { background: var(--sv-gold-050); }
.notif-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}
.notif-item.unread .notif-dot { background: var(--sv-gold-500); }
.notif-item-body {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.notif-close {
  flex: 0 0 auto;
  padding: 0 2px;
  border: 0;
  border-radius: var(--sv-radius-xs);
  background: transparent;
  color: var(--sv-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--sv-dur-fast) var(--sv-ease-standard),
              background-color var(--sv-dur-fast) var(--sv-ease-standard);
}
.notif-close:hover { color: var(--sv-danger); background: var(--sv-surface-2); }
.notif-item-title {
  margin-bottom: 3px;
  color: var(--sv-ink);
  font-size: var(--sv-fs-md);
  font-weight: var(--sv-fw-semibold);
}
.notif-item-msg {
  color: var(--sv-text);
  font-size: var(--sv-fs-sm);
  line-height: var(--sv-lh-snug);
  overflow-wrap: break-word;
}
.notif-item-time {
  margin-top: 3px;
  color: var(--sv-muted);
  font-size: var(--sv-fs-2xs);
}
.notif-empty {
  padding: 24px 16px;
  color: var(--sv-text);
  font-size: var(--sv-fs-sm);
  text-align: center;
}

.notif-push { padding: 10px 12px 12px; border-top: 1px solid var(--sv-line); }
.notif-push-btn {
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--sv-surface-2);
  color: var(--sv-ink);
  font-size: var(--sv-fs-sm);
  font-weight: var(--sv-fw-semibold);
  cursor: pointer;
  transition: background-color var(--sv-dur-fast) var(--sv-ease-standard);
}
.notif-push-btn:hover { background: var(--sv-surface-3); }
.notif-push-btn.off { background: var(--sv-danger-bg); color: var(--sv-danger); }
.notif-push-btn:disabled { opacity: 0.6; cursor: default; }
.notif-push-hint {
  margin-top: 6px;
  color: var(--sv-text);
  font-size: var(--sv-fs-xs);
  line-height: 1.4;
}

/* --- Тосты -------------------------------------------------------------- */
.notif-toasts {
  position: fixed;
  top: calc(var(--sv-header-h) + 12px);
  right: 16px;
  z-index: var(--sv-z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 340px;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}
.notif-toast {
  padding: 12px 14px;
  border: 1px solid var(--sv-line);
  border-left: 4px solid var(--sv-gold-500);
  border-radius: var(--sv-radius-lg);
  background: var(--sv-surface);
  box-shadow: var(--sv-shadow-panel);
  pointer-events: auto;
  animation: svToastIn var(--sv-dur-slow) var(--sv-ease-out);
}
.notif-toast[data-type="admission_yes"] { border-left-color: var(--sv-success); }
.notif-toast[data-type="weight_assigned"] { border-left-color: var(--sv-navy-600); }
.notif-toast[data-type="weight_changed"] { border-left-color: var(--sv-gold-600); }
.notif-toast[data-type="cabinet_added"] { border-left-color: var(--sv-muted); }
.notif-toast[data-type="cabinet_removed"],
.notif-toast[data-type="removed_from_competition"] { border-left-color: var(--sv-danger); }
@keyframes svToastIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
.notif-toast-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.notif-toast-title {
  color: var(--sv-ink);
  font-size: var(--sv-fs-md);
  font-weight: var(--sv-fw-bold);
}
.notif-toast-close {
  padding: 0 2px;
  border: 0;
  border-radius: var(--sv-radius-xs);
  background: transparent;
  color: var(--sv-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.notif-toast-close:hover { color: var(--sv-danger); background: var(--sv-surface-2); }
.notif-toast-msg {
  display: block;
  margin-top: 4px;
  color: var(--sv-text);
  font-size: var(--sv-fs-sm);
  line-height: var(--sv-lh-snug);
  text-decoration: none;
}
.notif-toast-msg:hover { color: var(--sv-navy-600); }

/* --- Модалка push-разрешения ------------------------------------------- */
.push-prompt {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--sv-navy-a55);
}
.push-prompt.open { display: flex; }
.push-prompt-card {
  width: 100%;
  max-width: 360px;
  padding: 22px 20px 18px;
  border-radius: var(--sv-radius-3xl);
  background: var(--sv-surface);
  box-shadow: var(--sv-shadow-modal);
  text-align: center;
  animation: svPromptIn var(--sv-dur-base) var(--sv-ease-out);
}
@keyframes svPromptIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.push-prompt-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--sv-gold-050);
  color: var(--sv-gold-700);
}
.push-prompt-title {
  color: var(--sv-ink);
  font-size: var(--sv-fs-base);
  font-weight: var(--sv-fw-bold);
}
.push-prompt-question {
  margin-top: 2px;
  color: var(--sv-ink);
  font-size: 14px;
  font-weight: var(--sv-fw-semibold);
}
.push-prompt-text {
  margin: 8px 0 14px;
  color: var(--sv-text);
  font-size: var(--sv-fs-sm);
  line-height: var(--sv-lh-snug);
}
.push-prompt .pp-ios-hint {
  display: none;
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--sv-warning-bg);
  color: var(--sv-warning);
  font-size: var(--sv-fs-sm);
  line-height: 1.4;
  text-align: left;
}
.push-prompt-error {
  min-height: 1em;
  margin-bottom: 6px;
  color: var(--sv-danger);
  font-size: var(--sv-fs-xs);
}
.push-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.push-prompt-primary {
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--sv-gold-500);
  color: var(--sv-navy-800);
  font-size: 14px;
  font-weight: var(--sv-fw-bold);
  cursor: pointer;
}
.push-prompt-primary:hover { background: var(--sv-gold-400); }
.push-prompt-primary:disabled { opacity: 0.65; cursor: default; }
.push-prompt-secondary {
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sv-text);
  font-size: var(--sv-fs-md);
  cursor: pointer;
}
.push-prompt-secondary:hover { color: var(--sv-ink); background: var(--sv-surface-2); }

/* ==========================================================================
   5. ФУТЕР
   ========================================================================== */

.site-footer {
  margin-top: auto;
  padding: 32px 0 24px;
  background: var(--sv-navy-800);
  color: var(--sv-on-dark);
  font-size: var(--sv-fs-sm);
  line-height: var(--sv-lh-body);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sv-space-8);
  width: 100%;
  max-width: var(--sv-container);
  margin-inline: auto;
  padding-inline: var(--sv-gutter);
}
.site-footer__brand {
  flex: 1 1 260px;
  min-width: 0;
}
.site-footer__logo {
  display: block;
  width: auto;
  height: 42px;
  margin-bottom: 10px;
}
.site-footer__brand-title {
  color: var(--sv-white);
  font-family: var(--sv-font-display);
  font-size: var(--sv-fs-lg);
  font-weight: var(--sv-fw-semibold);
  line-height: 1.3;
}
.site-footer__tagline {
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--sv-on-dark);
  font-size: var(--sv-fs-sm);
  line-height: var(--sv-lh-snug);
}
.site-footer__links {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 520px;
}
.site-footer__links a {
  color: var(--sv-on-dark);
  font-size: var(--sv-fs-sm);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--sv-gold-400); }
.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 1 auto;
  color: var(--sv-on-dark);
  font-size: var(--sv-fs-sm);
}
.site-footer__contacts a {
  color: var(--sv-white);
  text-decoration: none;
}
.site-footer__contacts a:hover { color: var(--sv-gold-400); }
.site-footer__company-cta {
  flex: 0 0 auto;
  align-self: center;
}
.site-footer__company-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid var(--sv-gold-400);
  border-radius: 10px;
  background: transparent;
  color: var(--sv-gold-400);
  font-size: var(--sv-fs-sm);
  font-weight: 700;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.site-footer__company-btn:hover {
  background: var(--sv-gold-400);
  color: var(--sv-navy-800);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--sv-container);
  margin: 24px auto 0;
  padding: 16px var(--sv-gutter) 0;
  border-top: 1px solid var(--sv-white-a18);
  color: #9fb0c3;
  font-size: var(--sv-fs-xs);
}
.site-footer__bottom a { color: #c9d3df; }
.site-footer__bottom a:hover { color: var(--sv-gold-400); }

/* ==========================================================================
   6. АДАПТИВНОСТЬ ШАПКИ И ФУТЕРА
   ========================================================================== */

@media (max-width: 1500px) {
  .site-nav { gap: 4px 16px; }
  .header-user .user-name { max-width: 130px; }
  .header-user .role-badge { display: none; }
}

@media (max-width: 1400px) {
  .site-header-inner { gap: 16px; }
  .site-nav { gap: 4px 14px; }
  .header-user .user-name,
  .header-user .role-badge { display: none; }
}

@media (max-width: 1100px) {
  .site-header-inner { gap: 12px; }
  .site-nav { display: none; }
  .header-auth { display: none; }
  .header-user .user-name,
  .header-user .role-badge { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 767px) {
  .site-header-inner { padding-inline: var(--sv-gutter-sm); }
  .header-user,
  #faqHeaderBtn { display: none !important; }
  .bottom-nav a.bottom-nav__contacts,
  .bottom-nav a.bottom-nav__logout { display: none; }
  .notif-toasts { top: calc(var(--sv-header-h) + 8px); right: 10px; }
  .bottom-nav { display: flex; }
  body { padding-bottom: var(--sv-bottom-nav-h); }
  .site-footer { padding-bottom: 20px; }
  .site-footer__inner { flex-direction: column; gap: var(--sv-space-6); }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .site-logo img,
  .site-logo .site-logo__img { height: 17px; }
}

@media (max-width: 380px) {
  .notif-wrap { display: none; }
  .site-logo img,
  .site-logo .site-logo__img { height: 16px; }
}

@media (max-width: 540px) {
  .site-header-inner { padding-inline: 14px; gap: 8px; }
  .site-logo img,
  .site-logo .site-logo__img { height: 20px; }
  .site-logo .logo-divider { height: 24px; }
  .site-logo .logo-text__title { font-size: 13px; }
  .site-logo .logo-text__sub { font-size: 10px; }
  .site-footer__inner { padding-inline: var(--sv-gutter-sm); }
  .site-footer__bottom { padding-inline: var(--sv-gutter-sm); }
}

@media (max-width: 480px) {
  .site-logo .logo-text { display: none; }
  .site-logo .logo-divider { display: none; }
  .site-logo img,
  .site-logo .site-logo__img { height: 18px; }
  .site-footer__logo { height: 34px; }
  .notif-panel { width: 300px; }
  .slide-menu { width: 100%; border-radius: 0; }
}

@media (max-width: 380px) {
  .bottom-nav__contacts { display: none; }
}

/* Vector map base */
.home-map-canvas.leaflet-container,
#calendar-map-canvas.leaflet-container { background: #EAF1F8; }
.sv-russia-base { filter: drop-shadow(0 6px 14px rgba(11,42,74,.10)); }
.sv-map-label {
    background: transparent;
    border: 0;
    color: rgba(11,42,74,.28);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    white-space: nowrap;
    transform: translate(-50%, -50%);
}
