/* Ссылки внутри текста страниц услуг и разделов: видимые, зелёные, с подчёркиванием */
#allrecords .ksv p a:not(.ksv-chip),
#allrecords .ksv li a:not(.ksv-chip):not(.ksv__cat-name),
#allrecords .ksv td a:not(.ksv-chip),
#allrecords .ksv-text a,
#allrecords .kifi-catdesc p a,
#allrecords .kifi-catdesc li a,
#allrecords #kifi-brand p a,
#allrecords #kifi-seo p a {
  color: #0B6B4F !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-color: rgba(11,107,79,.35) !important;
  text-underline-offset: 3px;
  transition: color .15s;
}
#allrecords .ksv p a:not(.ksv-chip):hover,
#allrecords .ksv li a:not(.ksv-chip):not(.ksv__cat-name):hover,
#allrecords .ksv td a:not(.ksv-chip):hover,
#allrecords .ksv-text a:hover,
#allrecords .kifi-catdesc p a:hover,
#allrecords .kifi-catdesc li a:hover,
#allrecords #kifi-brand p a:hover,
#allrecords #kifi-seo p a:hover {
  color: #FF3B2F !important;
  text-decoration-color: #FF3B2F !important;
}

/* Основной текст: выравнивание по ширине с переносами (без дыр между словами) */
#allrecords .kifi-about-section p,
#allrecords .kf8-tagline,
#allrecords .ksv p:not([class]),
#allrecords .ksv-text p,
#allrecords .kifi-catdesc p,
#allrecords #kifi-brand p,
#allrecords #kifi-seo p,
#allrecords .kx-cta__text > p:not(.kx-note),
#allrecords .t-store__prod-popup__text,
#allrecords .js-store-prod-all-text {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Главная: калькулятор и «Изготовим по чертежу» — тот же фон карточек, что у «Популярных услуг» */
#allrecords .kx-card,
#allrecords .kx-cta {
  background: rgba(13,58,51,.8) !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-radius: 12px !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#allrecords .kx-map {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.06) !important;
}

/* Меню и подвал: подсветка красным, как кнопки */
html body .kifi-dropdown a.kifi-dd-all:not(:hover),
html body .kifi-acc__panel a.kifi-dd-all:not(:hover) {
  background: transparent !important;
}
html body .kifi-dropdown a:hover,
html body .kifi-dropdown a.kifi-dd-all:hover,
html body .kifi-svc-panel a:hover {
  background: linear-gradient(135deg,#FF3B2F 0%,#FF2F24 100%) !important;
  color: #fff !important;
}
html body .kifi-svc-head:hover,
html body .kifi-svc-group.is-open > .kifi-svc-head {
  background: linear-gradient(135deg,#FF3B2F 0%,#FF2F24 100%) !important;
  border-color: #FF3B2F !important;
  color: #fff !important;
}
html body .kifi-svc-head:hover *,
html body .kifi-svc-group.is-open > .kifi-svc-head * {
  color: #fff !important;
}
html body ul.kf8-list li a:hover,
html body .kf8-acc__head:hover,
html body .kf8-acc__panel-inner a:hover {
  color: #FF3B2F !important;
}

/* Подвал: в «Каталоге» только основные разделы (остальные — через «Все товары» и меню) */
html body .kf8-col--acc:nth-child(2) ul.kf8-list{display:flex!important;flex-direction:column}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="avtomobilnye-zapchasti"]),
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="/instrument/"]),
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="uslugi-gumirovaniy"]),
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="/mufty/"]){display:none!important}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="selhoznaznachenie"]){order:1}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="skladskaya-tehnika"]){order:2}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="dorozhnaya-tehnika"]){order:3}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="gornodobyvayushhaya"]){order:4}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="konvejery"]){order:5}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="promyshlennoe-oborudovanie"]){order:6}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a[href*="zakaznye-ot-1sht"]){order:7}
html body .kf8-col--acc:nth-child(2) ul.kf8-list li:has(a.kf8-all){order:9}

/* Подвал на десктопе: компактный (контакты в 2 колонки, бейджи в строку, логотипы брендов ниже) */
@media (min-width:1360px){
html body .kf8-wrap{max-width:1320px!important;padding-top:28px!important;padding-bottom:16px!important}
html body .kf8-cols{grid-template-columns:270px 190px 215px 140px minmax(0,1fr)!important;gap:24px!important;align-items:start}
html body .kf8-tagline{margin-bottom:12px!important}
html body .kf8-badges{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:6px!important}
html body .kf8-badge{font-size:11px!important;padding:3px 8px!important;margin:0!important;width:auto!important;flex:0 0 auto!important;display:inline-flex!important}
html body .kf8-acc__head{padding-top:5px!important;padding-bottom:5px!important;min-height:0!important}
html body .kf8-contacts{display:grid!important;grid-template-columns:1fr 1fr;gap:10px 12px!important}
html body .kf8-contact{margin:0!important}
html body .kf8-c-body,html body .kf8-c-val,html body .kf8-c-label{min-width:0;white-space:nowrap}
html body .kf8-rate{margin-top:10px!important;padding-top:10px!important}
html body .kf8-brands{max-width:1320px!important;padding-top:10px!important;padding-bottom:10px!important}
html body .kf8-brand-item{height:46px!important;padding:3px!important}
html body .kf8-brand-item img{max-height:38px!important;max-width:100%!important;object-fit:contain}
html body .kf8-bottom{max-width:1320px!important}
}
