.ru-floating-contact {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 890;
  box-sizing: border-box;
  width: 272px;
  max-width: 100%;
  border: 1px solid #ed891f;
  background: rgba(239, 239, 237, 0.84);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.ru-floating-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  height: 74px;
  padding: 0 12px;
  color: #1c4055;
  font: 700 23px/1.25 Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.ru-floating-contact a + a { border-top: 1px solid rgba(237, 137, 31, 0.5); }
.ru-floating-contact a:hover { color: #a75408; background: rgba(255, 255, 255, 0.35); }
.ru-floating-contact a:focus-visible { outline: 2px solid #1c4055; outline-offset: -4px; }

/* Keep the contact form clear of the fixed panel. */
@media (min-width: 999px) {
  html[lang="ru"] #demo .carousel-control-next { right: 284px; width: 44px; }
  html[lang="ru"] .top:has(#TechnicalInquiryForm) {
    width: calc(100% - 328px);
    max-width: 1400px;
    margin-left: auto;
    margin-right: 304px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  html[lang="ru"] .top:has(#TechnicalInquiryForm) .departments { flex-wrap: wrap; }
}

@media (min-width: 999px) and (max-width: 1440px) {
  html[lang="ru"] .top:has(#TechnicalInquiryForm) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 998px) {
  html[lang="ru"] { scroll-padding-bottom: 110px; }
  html[lang="ru"] body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .ru-floating-contact {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(242, 242, 240, 0.96);
  }
  .ru-floating-contact a { height: 44px; font-size: 18px; }
  html[lang="ru"] #deepdrill-analytics-settings { bottom: calc(100px + env(safe-area-inset-bottom)); }
}

@media (min-width: 999px) and (max-height: 600px) {
  .ru-floating-contact { top: auto; bottom: 12px; transform: none; }
  .ru-floating-contact a { height: 54px; font-size: 21px; }
}

@media print { .ru-floating-contact { display: none; } }
