/* Catalog redesign — верхний блок
   Figma: 360 / 1440 (в макете только 2 брейкпоинта)
   Mobile first; desktop layout с 768
*/

.bz-catalog-top {
  background-color: var(--bz-bg-prim, #f7f6f1);
  padding: 20px 20px 0;
  margin: 0;
  box-sizing: border-box;
}

.bz-catalog-top .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bz-catalog-top__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.bz-catalog-top__crumb,
.bz-catalog-top__crumb-sep {
  font: inherit;
}

.bz-catalog-top__crumb--link {
  color: #a6a5a2;
  text-decoration: none;
}

.bz-catalog-top__crumb--link:hover,
.bz-catalog-top__crumb--link:focus {
  color: var(--bz-prim, #f27e00);
  text-decoration: none;
}

.bz-catalog-top__crumb-sep,
.bz-catalog-top__crumb--current {
  color: var(--bz-b-100, #2d2c2c);
}

.bz-catalog-top__row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bz-catalog-top__tabs {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 5px;
  border-radius: 60px;
  background-color: #edeae7;
  box-sizing: border-box;
}

.bz-catalog-top__tab {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  /* Figma 360: px 20 / py 10, font 11 */
  padding: 10px 20px;
  border-radius: 25px;
  box-sizing: border-box;
  color: var(--bz-b-100, #2d2c2c);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.bz-catalog-top__tab:hover,
.bz-catalog-top__tab:focus {
  color: var(--bz-b-100, #2d2c2c);
  text-decoration: none;
}

.bz-catalog-top__tab.is-active {
  background-color: var(--bz-prim, #f27e00);
  color: #ffffff;
  cursor: default;
}

.bz-catalog-top__help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  order: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bz-b-100, #2d2c2c);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bz-catalog-top__help:hover,
.bz-catalog-top__help:focus {
  color: var(--bz-prim, #f27e00);
}

.bz-catalog-top__help-icon {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* ——— Tablet+ (с 768): крошки/табы как на desktop, help всё ещё под табами ——— */
@media (min-width: 768px) {
  .bz-catalog-top {
    padding: 20px 30px 0;
  }

  .bz-catalog-top__crumbs {
    justify-content: center;
    margin-bottom: 40px;
  }

  .bz-catalog-top__tabs {
    max-width: 375px;
    padding: 10px;
  }

  .bz-catalog-top__tab {
    flex: 0 0 auto;
    height: auto;
    padding: 10px 20px;
    font-size: 14px;
    letter-spacing: -0.02em;
  }
}

/* ——— Desktop: help слева, табы по центру (как в макете 1440) ——— */
@media (min-width: 1024px) {
  .bz-catalog-top__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 60px;
  }

  .bz-catalog-top__help {
    order: unset;
    grid-column: 1;
    justify-self: start;
  }

  .bz-catalog-top__tabs {
    grid-column: 2;
    width: auto;
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 1440px) {
  .bz-catalog-top {
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 30px 0;
  }
}
