/* Global UI normalization for messenger buttons, price cards and fallback navigation. */
:root {
  --dkx-ui-black: #1a1818;
  --dkx-ui-red: #990011;
  --dkx-ui-soft: #FCF6F5;
  --dkx-ui-line: rgba(168, 164, 163, .42);
}

a[href*="max.ru/u/"],
a[href*="t.me/ARTCAR_PRO"],
a[href*="wa.me/79842730403"] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(168, 164, 163, .45) !important;
  background-color: #fff !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 34px 34px !important;
  box-shadow: 0 7px 0 rgba(26, 24, 24, .22), 0 16px 30px rgba(26, 24, 24, .14) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
  overflow: hidden !important;
  gap: 0 !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

a[href*="max.ru/u/"] {
  background-image: url("/assets/performance/max-96.webp") !important;
}

a[href*="t.me/ARTCAR_PRO"] {
  background-image: url("/assets/performance/telegram-96.webp") !important;
}

a[href*="wa.me/79842730403"] {
  background-image: url("/assets/performance/whatsapp-96.webp") !important;
}

a[href*="max.ru/u/"]:hover,
a[href*="t.me/ARTCAR_PRO"]:hover,
a[href*="wa.me/79842730403"]:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(153, 0, 17, .45) !important;
  box-shadow: 0 10px 0 rgba(26, 24, 24, .24), 0 22px 42px rgba(26, 24, 24, .18) !important;
}

a[href*="max.ru/u/"] img,
a[href*="t.me/ARTCAR_PRO"] img,
a[href*="wa.me/79842730403"] img {
  display: block !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  object-fit: contain !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

a[href*="max.ru/u/"] span,
a[href*="t.me/ARTCAR_PRO"] span,
a[href*="wa.me/79842730403"] span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.dkx-conversion-hint-v3__price,
.dkx-seo-conversion__price,
.dkx-price-card,
.price-card,
.dkx-model-price__item,
.dkx-price-bottom__item,
.price__item,
.dkx-audi-price,
.dkx-money-landing-v1__price,
.dkx-material-buy-seo__price,
.dkx__price-box {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff 0%, #fff7f6 100%) !important;
  border: 1px solid rgba(153, 0, 17, .16) !important;
  box-shadow: 0 14px 34px rgba(26, 24, 24, .09) !important;
  color: var(--dkx-ui-black) !important;
}

.dkx-conversion-hint-v3__price strong,
.dkx-seo-conversion__price strong,
.dkx-price-card strong,
.price-card strong,
.dkx-model-price__item strong,
.dkx-price-bottom__item strong,
.price__item strong,
.dkx-audi-price strong,
.dkx-money-landing-v1__price strong,
.dkx-material-buy-seo__price strong,
.dkx__price {
  color: var(--dkx-ui-red) !important;
  -webkit-text-fill-color: var(--dkx-ui-red) !important;
  font-weight: 950 !important;
  letter-spacing: 0 !important;
}

.dkx-conversion-hint-v3__price span,
.dkx-seo-conversion__price span,
.dkx-price-card span,
.price-card span,
.dkx-model-price__item span,
.dkx-price-bottom__item span,
.price__item span,
.dkx-audi-price span,
.dkx-money-landing-v1__price span,
.dkx-material-buy-seo__price span {
  color: rgba(26, 24, 24, .68) !important;
  -webkit-text-fill-color: rgba(26, 24, 24, .68) !important;
}

.dkx-global-nav-v1 {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 20;
  font-family: TildaSans, Arial, sans-serif;
}

.dkx-global-nav-v1 a,
.dkx-global-nav-v1 span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(252, 246, 245, .92);
  border: 1px solid var(--dkx-ui-line);
  color: var(--dkx-ui-black);
  -webkit-text-fill-color: var(--dkx-ui-black);
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(26, 24, 24, .08);
}

.dkx-global-nav-v1 span {
  min-width: 34px;
  justify-content: center;
  padding: 0;
  background: rgba(153, 0, 17, .08);
  color: var(--dkx-ui-red);
  -webkit-text-fill-color: var(--dkx-ui-red);
}

@media (max-width: 640px) {
  a[href*="max.ru/u/"],
  a[href*="t.me/ARTCAR_PRO"],
  a[href*="wa.me/79842730403"] {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    background-size: 29px 29px !important;
  }

  a[href*="max.ru/u/"] img,
  a[href*="t.me/ARTCAR_PRO"] img,
  a[href*="wa.me/79842730403"] img {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
  }

  .dkx-global-nav-v1 {
    width: min(100% - 24px, 1180px);
    margin-top: 12px;
  }
}

/* Global visual correction v4: messenger icons must match the main site header,
   and injected fallback breadcrumbs must never sit above the real header. */
body > .dkx-global-nav-v1 {
  display: none !important;
}

a[href*="max.ru/u/"],
a[href*="t.me/ARTCAR_PRO"],
a[href*="wa.me/79842730403"] {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(168, 164, 163, .50) !important;
  background-color: #fff !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 38px 38px !important;
  box-shadow: 0 8px 0 rgba(26, 24, 24, .24), 0 16px 28px rgba(26, 24, 24, .15) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  letter-spacing: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
}

a[href*="max.ru/u/"]::before,
a[href*="max.ru/u/"]::after,
a[href*="t.me/ARTCAR_PRO"]::before,
a[href*="t.me/ARTCAR_PRO"]::after,
a[href*="wa.me/79842730403"]::before,
a[href*="wa.me/79842730403"]::after {
  display: none !important;
  content: none !important;
}

a[href*="max.ru/u/"] img,
a[href*="t.me/ARTCAR_PRO"] img,
a[href*="wa.me/79842730403"] img,
a[href*="max.ru/u/"] .dkx__messenger-icon,
a[href*="t.me/ARTCAR_PRO"] .dkx__messenger-icon,
a[href*="wa.me/79842730403"] .dkx__messenger-icon {
  position: static !important;
  z-index: auto !important;
  display: block !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  flex: 0 0 38px !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

a[href*="max.ru/u/"] span,
a[href*="t.me/ARTCAR_PRO"] span,
a[href*="wa.me/79842730403"] span {
  display: none !important;
}

a[href*="max.ru/u/"]:hover,
a[href*="t.me/ARTCAR_PRO"]:hover,
a[href*="wa.me/79842730403"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 0 rgba(26, 24, 24, .25), 0 20px 34px rgba(26, 24, 24, .18) !important;
}

.dkx-client-seo-v1__price,
.dkx-seo-conversion__price,
.dkx-conversion-hint-v3__price,
.dkx-money-landing-v1__price,
.dkx-material-buy-seo__price,
.dkx-model-price__item,
.dkx-price-bottom__item,
.dkx-price-card,
.price-card,
.price__item,
.price-item,
[class*="__price-card"],
[class*="__price-item"] {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #fff 0%, #fff7f6 100%) !important;
  border: 1px solid rgba(153, 0, 17, .16) !important;
  box-shadow: 0 14px 34px rgba(26, 24, 24, .09) !important;
  color: var(--dkx-ui-black) !important;
}

.dkx-client-seo-v1__price strong,
.dkx-seo-conversion__price strong,
.dkx-conversion-hint-v3__price strong,
.dkx-money-landing-v1__price strong,
.dkx-material-buy-seo__price strong,
.dkx-model-price__item strong,
.dkx-price-bottom__item strong,
.dkx-price-card strong,
.price-card strong,
.price__item strong,
.price-item strong,
[class*="__price-card"] strong,
[class*="__price-item"] strong {
  color: var(--dkx-ui-red) !important;
  -webkit-text-fill-color: var(--dkx-ui-red) !important;
  font-weight: 950 !important;
}

@media (max-width: 640px) {
  a[href*="max.ru/u/"],
  a[href*="t.me/ARTCAR_PRO"],
  a[href*="wa.me/79842730403"] {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    background-size: 30px 30px !important;
    box-shadow: 0 6px 0 rgba(26, 24, 24, .22), 0 13px 22px rgba(26, 24, 24, .14) !important;
  }

  a[href*="max.ru/u/"] img,
  a[href*="t.me/ARTCAR_PRO"] img,
  a[href*="wa.me/79842730403"] img,
  a[href*="max.ru/u/"] .dkx__messenger-icon,
  a[href*="t.me/ARTCAR_PRO"] .dkx__messenger-icon,
  a[href*="wa.me/79842730403"] .dkx__messenger-icon {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    flex-basis: 30px !important;
  }
}
