/* Общие шапка и подвал сайта (журнал, чат). Фирменный стиль Amigo. */
.site-header {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e2e5ea;
  box-shadow: 0 2px 12px rgba(16, 24, 40, .05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 68px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-brand img { width: 40px; height: 40px; }
.site-brand .brand-name {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1f2430;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: #6c757d;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .2s ease;
}
.site-nav a:hover { color: #10b981; background: #e7f7f0; }
.site-nav a.active { color: #fff; background: #10b981; }
.site-lang { margin-left: 6px; }
.site-lang-select {
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid #e2e5ea;
  border-radius: 8px;
  background: #fff;
  color: #1f2430;
  cursor: pointer;
}

.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 26px 0;
  margin-top: auto;
}
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; text-align: center; }
.site-footer .copyright { font-size: 14px; }
.site-footer .copyright strong { color: #fff; }
.site-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}
.site-footer .social-links a { color: #cbd5e1; font-size: 18px; text-decoration: none; }
.site-footer .social-links a:hover { color: #10b981; }

.mobile-nav-toggle { display: none; }

/* Хлебные крошки */
.breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 14px 20px 0; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #6c757d;
}
.breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: #cbd5e1; }
.breadcrumbs a { color: #6c757d; text-decoration: none; }
.breadcrumbs a:hover { color: #10b981; }
.breadcrumbs li[aria-current] { color: #1f2430; font-weight: 600; }

.site-menu-toggle {
  display: none;
  flex: 0 0 auto;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.site-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1f2430;
  margin: 4px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header.menu-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.menu-open .site-menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 992px) {
  .site-header .inner { height: auto; min-height: 60px; flex-wrap: wrap; padding: 10px 16px; }
  .site-menu-toggle { display: block; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    padding: 8px 0 4px;
    margin-top: 8px;
    border-top: 1px solid #e2e5ea;
  }
  .site-header.menu-open .site-nav { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .site-lang { margin: 8px 0 2px; }
}

@media (max-width: 575px) {
  .site-brand .brand-name { font-size: 19px; }
  .site-footer { padding: 20px 0; }
}

/* Журнал: метка раздела и активный пункт меню разделов */
.journal-feed-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #10b981;
  background: #e7f7f0;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 8px;
  font-weight: 700;
}
.journal-sidebar-nav a.active { color: #10b981; font-weight: 700; }
