.rz-mobile-callback { display: none; }

@media (max-width: 992px) {
 .header .rz-mobile-callback {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #0074b8;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
 }
}

@media (min-width: 993px) and (max-width: 1160px) {
 #layout:not(.add-layout):not(.edit-layout) .header .header-callback-btn {
  display: inline-flex !important;
  width: 78px;
  min-height: 38px !important;
  padding: 4px 5px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  text-align: center;
  white-space: normal !important;
 }
}

.rz-header-callback {
 box-sizing: border-box;
 width: min(440px, calc(100% - 24px));
 max-height: calc(100% - 24px);
 padding: 24px;
 border: 1px solid #d5dadf;
 border-radius: 20px;
 background: light-dark(#fff, #20282d);
 color: light-dark(#20282d, #f8fafc);
}
.rz-header-callback::backdrop { background: rgb(0 0 0 / 48%); }
.rz-header-callback h2 { margin: 0 36px 8px 0; font-size: 22px; }
.rz-header-callback-hint { margin: 0 0 12px; font-size: 14px; }
.rz-header-callback-close {
 position: absolute;
 top: 8px;
 right: 8px;
 width: 40px;
 height: 40px;
 border: 0;
 border-radius: 8px;
 background: transparent;
 color: inherit;
 font-size: 26px;
 cursor: pointer;
}
.rz-header-callback .hero-cta-form-wrap { width: 100%; margin: 0; }
.rz-header-callback textarea[name="f3"] {
 display: block;
 min-width: 0;
 padding-inline: 12px !important;
 white-space: nowrap;
 overflow-y: hidden;
}
.rz-header-callback input[type="submit"] {
 min-height: 44px;
 max-width: 100%;
 padding: 8px 16px;
 border: 0;
 border-radius: 10px;
 background: #0074b8;
 color: #fff;
 cursor: pointer;
}
.rz-header-callback .hero-cta-agree {
 display: flex;
 align-items: flex-start;
 gap: 8px;
 margin-top: 12px;
 font-size: 14px;
 cursor: pointer;
}

/* Keep the quick callback on mobile pages where the HERO has no working form. */
@media (max-width: 992px) {
 body:has(.hero-cta .hero-cta-form-wrap form.mform-2 [name="f3"],
          .product-hero-feedback .hero-cta-form-wrap form.mform-2 [name="f3"],
          .rz-header-callback[open] .hero-cta-form-wrap form.mform-2 [name="f3"]) .header .rz-mobile-callback {
  display: none;
 }
}

#rz-header-callback.rz-header-callback-exit {
 width: min(548px, calc(100% - 24px));
 padding: 32px;
 border-color: light-dark(#c5dcec, #456176);
 border-radius: 24px;
 background: light-dark(#fcfdff, #20282d);
 color: light-dark(#172432, #f8fafc);
 box-shadow: 0 24px 70px #0f233e55;
}

#rz-header-callback.rz-header-callback-exit::backdrop {
 background: #101f35a6;
}

#rz-header-callback.rz-header-callback-exit::before {
 content: "";
 display: block;
 width: 56px;
 height: 56px;
 margin-bottom: 12px;
 background: url("/SOCSETI_ZNACHOK/logo-3d-raznorabochie23.png") center / contain no-repeat;
}

#rz-header-callback.rz-header-callback-exit h2 {
 margin: 3px 44px 9px 0;
 font-size: 32px;
 line-height: 1.15;
 letter-spacing: -.025em;
}

#rz-header-callback.rz-header-callback-exit .rz-header-callback-hint {
 max-width: 390px;
 margin: 0 0 23px;
 color: light-dark(#41566b, #c4d2df);
 font-size: 16px;
 line-height: 1.5;
}

#rz-header-callback.rz-header-callback-exit .rz-header-callback-close {
 top: 16px;
 right: 16px;
 display: grid;
 place-items: center;
 padding: 0;
 border: 1px solid light-dark(#dce5ed, #52677b);
 border-radius: 50%;
 background: light-dark(#f3f7fa, #2d3e50);
 color: light-dark(#355069, #e0ecf7);
 font-size: 27px;
 line-height: 1;
}

#rz-header-callback.rz-header-callback-exit .rz-header-callback-close:hover {
 background: light-dark(#e8f0f7, #394e61);
}

/* uCoz renders the HERO controls with important sizing and color declarations. */
#rz-header-callback.rz-header-callback-exit textarea[name="f3"] {
 height: 52px !important;
 min-height: 52px !important;
 padding: 15px !important;
 border: 1px solid light-dark(#cbd9e5, #52677b) !important;
 border-radius: 12px !important;
 background: light-dark(#fff, #172432) !important;
 color: light-dark(#172432, #f8fafc) !important;
 line-height: 20px !important;
}

#rz-header-callback.rz-header-callback-exit textarea[name="f3"]::placeholder {
 color: light-dark(#67798b, #a5b5c5) !important;
}

#rz-header-callback.rz-header-callback-exit input[type="submit"] {
 height: 52px !important;
 min-height: 52px !important;
 padding: 0 19px !important;
 --rz-exit-button-surface: linear-gradient(
   180deg,
   rgba(54, 177, 255, .94) 0%,
   rgba(0, 145, 234, .96) 44%,
   rgba(0, 92, 153, .98) 51%,
   rgba(0, 116, 190, .98) 100%
 );
 border: 0 !important;
 border-radius: 8px !important;
 background-color: #006ca9 !important;
 background-image: var(--rz-exit-button-surface) !important;
 box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55),
   inset 0 -8px 0 rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .38) !important;
 transform: none !important;
 transition: none !important;
}

#rz-header-callback.rz-header-callback-exit .hero-cta-agree {
 gap: 8px;
 margin: 15px 0 0;
 color: light-dark(#41566b, #c4d2df);
 font-size: 13px;
 line-height: 1.5;
 opacity: 1;
}

#rz-header-callback.rz-header-callback-exit .hero-cta-agree input[type="checkbox"] {
 width: 17px;
 height: 17px;
 margin: 1px 0 0;
}

#rz-header-callback.rz-header-callback-exit .hero-cta-agree a {
 color: light-dark(#005e91, #a7d6fa);
 text-underline-offset: 2px;
}

#rz-header-callback.rz-header-callback-exit :is(button, input, textarea, a):focus-visible {
 outline: 2px solid light-dark(#006caa, #85c7ff) !important;
 outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
 #rz-header-callback.rz-header-callback-exit input[type="submit"] {
  transition: transform .2s ease !important;
 }

 #rz-header-callback.rz-header-callback-exit input[type="submit"]:enabled:is(:hover, :focus-visible) {
  /* Draw the site's light sweep inside the native dialog's top layer. */
  background-image: linear-gradient(108deg, transparent, #ffffff2e 22%, #ffffffb8 47%, #ffffffc7 53%, #ffffff33 78%, transparent),
    var(--rz-exit-button-surface) !important;
  background-repeat: no-repeat;
  background-size: 34% 140%, 100% 100%;
  animation: rzExitCallbackShine 1100ms linear both;
  transform: translateY(-1px) !important;
 }

 #rz-header-callback.rz-header-callback-exit input[type="submit"]:active {
  transform: none !important;
 }
}

@keyframes rzExitCallbackShine {
 from { background-position: -60% center, center; }
 to { background-position: 160% center, center; }
}
