/* Общая шапка разделов OOOSTOP.RU */

:root {
  --chrome-primary: #1e3a8a;
  --chrome-line: #e5e7eb;
  --chrome-muted: #6b7280;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--chrome-line);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.site-chrome-inner {
  width: min(1152px, 92%);
  margin: 0 auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 16px;
  padding: 8px 0 0;
}

.site-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--chrome-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 14px;
  justify-self: start;
}

.site-chrome-right {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  grid-column: 2;
  justify-self: center;
}

.section-switch {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
}

.section-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px 13px;
  border-radius: 10px 10px 0 0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--chrome-muted);
  background: #fff;
  border: 1px solid transparent;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

.section-switch a:hover {
  color: var(--chrome-primary);
  background: #f8fafc;
}

.section-switch a.is-active {
  color: rgba(255, 255, 255, 0.92);
  background: var(--chrome-primary);
  border-color: var(--chrome-line);
  border-bottom: 1px solid var(--chrome-primary);
  z-index: 1;
}

@media (max-width: 720px) {
  .site-chrome-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .site-brand {
    width: 100%;
    text-align: center;
    padding-bottom: 8px;
    justify-self: center;
  }
  .site-chrome-right {
    width: 100%;
    grid-column: 1;
  }
  .section-switch {
    width: 100%;
    justify-content: center;
  }
  .section-switch a {
    flex: 1;
    max-width: 48%;
    padding: 0 10px 10px;
    font-size: 0.85rem;
  }
}
