/* Единая шапка АРХИВ-01: главная, страница покупки, каталог */
.sh {
  background: #E6E1D5;
  border-bottom: 2px solid #181C20;
  padding: 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
  z-index: 40;
}
.sh-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sh-mark {
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  background: #181C20;
  color: #F4F1EA;
  padding: 4px 9px;
  border: 2px solid #181C20;
  box-shadow: inset 0 0 0 1.5px #F4F1EA;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.1;
}
.sh-title { font-size: 15px; font-weight: 800; color: #181C20; line-height: 1.15; letter-spacing: -0.2px; }
.sh-sub {
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #5A544B;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-stat {
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #38332C;
  background: #F4F1EA;
  border: 1px solid rgba(24, 28, 32, 0.35);
  padding: 4px 8px;
  text-decoration: none;
  white-space: nowrap;
}
.sh-stat b { color: #234F3B; font-weight: 800; }
.sh-spec { display: inline-flex; align-items: center; }
.sh-select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #38332C;
  background-color: #F4F1EA;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%2338332C' d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  border: 1px solid rgba(24, 28, 32, 0.35);
  padding: 5px 26px 5px 9px;
  cursor: pointer;
}
.sh-select:hover { border-color: #234F3B; }
.sh-cta {
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #234F3B;
  color: #F4F1EA;
  border: 2px solid #234F3B;
  padding: 7px 13px;
  text-decoration: none;
  white-space: nowrap;
}
.sh-cta:hover { background: #1B3E2E; border-color: #1B3E2E; }
.sh-btn {
  font-family: var(--font-mono, ui-monospace, "JetBrains Mono", monospace);
  font-size: 10px;
  font-weight: 700;
  background: #F4F1EA;
  color: #234F3B;
  border: 2px solid #234F3B;
  padding: 6px 11px;
  cursor: pointer;
  white-space: nowrap;
}
.sh-btn:hover { background: #234F3B; color: #F4F1EA; }
.sh-burger { display: none; }

@media (max-width: 1100px) {
  .sh-sub { display: none; }
}
@media (max-width: 900px) {
  .sh { padding: 8px 12px; gap: 8px; }
  .sh-title { font-size: 12.5px; max-width: 240px; }
  .sh-actions { width: 100%; gap: 6px; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sh-actions::-webkit-scrollbar { display: none; }
  .sh-burger { display: inline-flex; align-items: center; gap: 5px; }
  .sh-stat, .sh-select, .sh-btn { font-size: 9.5px; padding: 4px 7px; }
  .sh-cta { font-size: 10px; padding: 6px 10px; }
}
@media (max-width: 520px) {
  .sh-title { font-size: 11.5px; max-width: 180px; }
  .sh-mark { font-size: 11px; padding: 3px 6px; }
}

@media (max-width: 700px) {
  /* на узком экране счётчики скрываем, чтобы кнопка заказа была видна без прокрутки */
  .sh-stat { display: none; }
  .sh-actions { overflow-x: visible; flex-wrap: wrap; }
  .sh-cta { margin-left: auto; }
}
