{% set cou = bc|length %}
<div class="visible-xs">
{% set i = 0 %}
{% if cou %}
{% for l, t in bc %}
{% if i < cou - 1 %}
<a href="{{ l }}">
{{ t|raw }}
{% set i = i + 1 %}
{% if i < cou and not prod.id %} > {% elseif i < cou - 1 and prod.id %} > {% endif %}
</a>
{% else %}
{% if not prod.id %}
{{ t|raw }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if paginator.cnt %}
<div class="bc-nav-count"><span>{{ paginator.cnt }}</span> {{ func.declension_word(paginator.cnt, [labels.get('declension-1-1'), labels.get('declension-1-2'), labels.get('declension-1-3')])|raw }} {{ labels.get('bc-1')|raw }}</div>
{% endif %}
</div>
<div class="hidden-xs">
<ul class="nav bc-nav bc-nav-prod">
{% set i = 0 %}
{% if cou %}
{% for l, t in bc %}
{% if (i < cou - 1) or (i < cou and not prod.id) %}
{% set mcou = attribute(bcc, l)|length %}
<li{% if mcou %} class="dropdown"{% endif %}>
<a href="{{ l }}">
{{ t|raw }}{% if mcou %}<span class="caret"></span>{% endif %}
</a>
{% if mcou %}
<ul class="dropdown-menu">
{% for lc, tc in attribute(bcc, l) %}
{% if l != lc %}
<li><a href="{{ lc }}">{{ tc|raw }}</a></li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
{% if prod.art %}
<li><a href="#" class="bc-prod-art">{{ prod.art }}</a></li>
{% endif %}
{% endif %}
</ul>
{% if paginator.cnt %}
<div class="bc-nav-count"><span>{{ paginator.cnt }}</span> {{ func.declension_word(paginator.cnt, [labels.get('declension-1-1'), labels.get('declension-1-2'), labels.get('declension-1-3')])|raw }} {{ labels.get('bc-1')|raw }}</div>
{% endif %}
</div>