.popular-categories-section-title-tag,
.features-section-title-tag,
.application-section-title-tag,
.objects-section-title-tag,
.sales-section-title-tag {
    text-transform: uppercase;
}
.popular-categories-section-title-tag::before {
    background: url(../images/main/catalog.svg) no-repeat;
    background-size: contain;
}
.certificates-section-title-tag::before {
    background: url(../images/main/papercheck.svg) no-repeat;
    background-size: contain;
}
.popular-services-section-title-tag::before {
    background: url(../images/main/service.svg) no-repeat;
    background-size: contain;
}
.features-section-title-tag::before {
    background: url(../images/main/chart.svg) no-repeat;
    background-size: contain;
}
.application-section-title-tag::before,
.objects-section-title-tag::before {
    background: url(../images/main/check.svg) no-repeat;
    background-size: contain;
}
.sales-section-title-tag::before {
    background: url(../images/main/bolt.svg) no-repeat;
    background-size: contain;
}
.popular-categories-section-title-tag a:hover {
    text-decoration: underline;
}

.category-page,
.taxonomy-klass-page,
.taxonomy-uslugi-category-page,
.taxonomy-marka-page {
    margin-top: 50px;
}


/* Сайдбар каталога */
.category-sidebar {
    padding-right: 30px;
}

.category-catalog-sidebar {
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 0;
    width: 375px;
    max-width: 100%;
}

.catalog-header {
    background: #A80505;
    padding: 17px 31px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.02;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.catalog-subtitle {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.02;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    margin-top: 6px;
}

.catalog-menu {
    padding: 0;
}

.catalog-item {
    border-bottom: 1px solid #F0F0F0;
    padding: 10px;
}

.catalog-item:last-child {
    border-bottom: none;
}

.catalog-link {
    display: block;
    padding: 0 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.97;
    text-transform: uppercase;
    color: #1B1B1B;
    text-decoration: none;
    transition: color 0.3s ease;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.catalog-link:hover {
    color: #A80505;
}

.catalog-item.active .catalog-link {
    color: #1B1B1B;
    font-weight: 500;
}

.catalog-accordion-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.accordion-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: auto;
    display: inline-block;
}

.accordion-icon.rotated {
    transform: rotate(180deg);
}

.catalog-item.active .accordion-icon {
    transform: rotate(180deg);
}

.catalog-submenu {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.catalog-item.active .catalog-submenu {
    display: block;
}

.catalog-sublink.active {
    color: #A80505;
    font-weight: 500;
}
/* Блок консультации */
.category-consultation-sidebar {
    background: #FFFFFF;
    border: 1px solid #EEEEEE;
    border-radius: 0;
    width: 375px;
    max-width: 100%;
    margin-top: 20px;
}

.consultation-header {
    background: #B40000;
    padding: 17px 31px;
    height: 65px;
    display: flex;
    align-items: center;
}

.consultation-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.02;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.consultation-content {
    padding: 22px 31px 20px 31px;
}

.consultation-text {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
    color: #717171;
    margin: 0;
    padding: 0;
    margin-bottom: 18px;
}

.consultation-btn {
    display: inline-block;
    padding: 12px 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 9px;
    line-height: 1.02;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    border: 1px solid #B40000;
    border-radius: 2px;
    color: #B40000;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.consultation-btn:hover {
    background: #B40000;
    color: #FFFFFF;
}

.consultation-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.phone-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.phone-number {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.02;
    text-transform: uppercase;
    color: #A80505;
    text-decoration: none;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #8A0404;
}

.catalog-sublink {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.75;
    color: #1B1B1B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.catalog-sublink:hover {
    color: #A80505;
}

/* === Pagination === */
.category-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  margin: 0 6px;

  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fff;

  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  color: #111;
  text-decoration: none;

  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.category-pagination .page-numbers:hover {
  border-color: #d5d5d5;
  background: #f5f5f5;
  transform: translateY(-1px);
}

.category-pagination .page-numbers.current {
  background: #b40000;
  border-color: #b40000;
  color: #fff;
  cursor: default;
  transform: none;
}

.category-pagination .page-numbers.dots {
  min-width: 34px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  color: #777;
  cursor: default;
  transform: none;
}

.category-pagination .page-numbers.prev,
.category-pagination .page-numbers.next {
  min-width: 44px;
  padding: 0 14px;
  font-weight: 900;
}

.category-pagination .page-numbers.prev:hover,
.category-pagination .page-numbers.next:hover {
  background: #f5f5f5;
}

.sidebar-filter-group { 
    margin-bottom: 18px; 
}
.sidebar-filter-title { 
    font-weight: 600; 
    margin-bottom: 10px; 
}
.sidebar-filter-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}
a.filter-catalog-sublink {
    display: inline-block !important;
    padding: 3px 8px !important;
    border: 1px solid var(--dark) !important;
    border-radius: 2px;
    margin-bottom: 3px;
    color: var(--dark) !important;
    text-decoration: none;
}

h2.category-listing-title {
    margin-bottom: 30px;
}

.cat-acc__header .cat-acc__media img {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    margin-top: -25px;
    margin-right: 10px;
}

.cat-acc__header .btn {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--primary);
    padding: 15px;
}
.cat-acc__text {
    display: inline-block;
}
.cat-acc__title, .cat-acc__meta, .cat-acc__row {
    display: block;
}
.cat-acc__header .btn span.cat-acc__title {
    font-family: "Roboto-Medium";
}
.cat-acc__child-text {
    display: inline-block;
}
a.cat-acc__child {
    display: inline-block;
    margin-top: 15px;
    margin-bottom: 15px;
    width: 49%;
    text-decoration: none;
    color: var(--dark);
}
a.cat-acc__child:focus,
a.cat-acc__child:hover {
    text-decoration: none;
    color: var(--dark);
}
a.cat-acc__child:hover {
    opacity: 0.8;
}
.cat-acc__child-media img {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    border-radius: 2px;
    margin-right: 10px;
}
.cat-acc__child-title, .cat-acc__child-meta {
    display: block;
}
.cat-acc__child-title {
    font-family: "Roboto-Medium";
}
.category-seo-content a,
.category-seo-content a:active,
.category-seo-content a:focus,
.category-seo-content a:visited {
    color: var(--primary);
}
.category-seo-content a:hover {
    color: var(--dark);
}
a.category-children__child {
    border: 0.5px solid #c6c6c6;
    padding: 20px;
    margin-top: 0;
    margin-bottom: 0;
}
.category-children-parent-page,
.category-children-parent-page .cat-acc__card,
.category-children-parent-page .card-body {
    border: none;
    background: none;
    padding: 0;
}
.category-children-parent-page {
    margin-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
}
.category-main-section {
    padding-top: 30px;
}

/* Mobile: уменьшим интервалы */
@media (max-width: 575px) {
  .category-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    margin: 0 4px;
    padding: 0 12px;
    font-size: 15px;
  }
}
