/* ===========================
   BREADCRUMBS — ЭТАЛОН (ФИНАЛ)
   hover = #900, без подчёркивания
   =========================== */

/* БАЗА */
.breadcrumbs{
  margin: 0.4rem 0 2.0rem;
  color: #8a8a8a;
}

.breadcrumbs ul{
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.breadcrumbs li{
  margin: 0;
  padding: 0;
}

.breadcrumbs a{
  text-decoration: none;
}

/* ---------------------------
   DESKTOP / TABLET
   --------------------------- */
@media (min-width: 770px){

  .breadcrumbs ul{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .breadcrumbs li{
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  /* Стрелочный разделитель */
  .breadcrumbs li::before{
    content: '›';
    margin: 0 8px;
    color: #b0b0b0;
    font-size: 1rem;
    flex: 0 0 auto;
  }

  .breadcrumbs li:first-child::before{
    content: '';
    margin: 0;
  }

  /* Ссылки */
  .breadcrumbs a{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6f6f6f;
    transition: color .15s ease;   /* лёгкий hover */
  }

  /* HOVER = фирменный цвет */
  .breadcrumbs a:hover{
    color: #900;
    text-decoration: none;
  }

  /* SVG-домик */
  .breadcrumbs a svg{
    width: 15px;
    height: 15px;
    display: block;
    color: currentColor;          /* КЛЮЧЕВО: домик меняет цвет вместе со ссылкой */
    flex: 0 0 auto;
  }

  /* Текущая позиция */
  .breadcrumbs span{
    color: #2f2f2f;
    font-weight: 500;
    padding-right: 0;
  }
}

/* ---------------------------
   MOBILE
   (каждый элемент — отдельной строкой)
   --------------------------- */
@media (max-width: 769px){

  .breadcrumbs{
    margin: 0.35rem 0 0.9rem;
  }

  .breadcrumbs ul{
    display: block;
  }

  .breadcrumbs li{
    display: block;
    width: fit-content;
    width: -webkit-fit-content;
    width: -moz-fit-content;

    margin-top: 6px;
    padding: 5px 9px;

    background: #f7f7f7;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;

    font-size: 0.95rem;
    line-height: 1.25;
  }

  /* На мобиле разделители не нужны */
  .breadcrumbs li::before{
    content: '';
    margin: 0;
  }

  .breadcrumbs a{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    text-decoration: none !important;
    transition: color .15s ease;
  }

  /* Hover/active тоже в фирменном цвете */
  .breadcrumbs a:hover,
  .breadcrumbs a:active{
    color: #900;
  }

  .breadcrumbs a svg{
    width: 15px;
    height: 15px;
    display: block;
    color: currentColor;          /* домик следует цвету ссылки */
    flex: 0 0 auto;
  }

  .breadcrumbs span{
    color: #2f2f2f;
    font-weight: 500;
    padding-right: 0;
  }
}
