#rd-help{--rd-teal:#167c79;--rd-bottom:20px;position:fixed;left:max(20px,env(safe-area-inset-left));bottom:calc(var(--rd-bottom) + env(safe-area-inset-bottom));z-index:900;font:15px/1.45 Arial,sans-serif;color:#202b2b;text-align:left}
#rd-help *{box-sizing:border-box}
#rd-help [hidden]{display:none!important}
#rd-help button,#rd-help a{font:inherit;-webkit-tap-highlight-color:transparent}
#rd-help button{cursor:pointer}
#rd-help button:focus-visible,#rd-help a:focus-visible{outline:3px solid #e72871;outline-offset:4px}
#rd-help .rd-launch{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 19px;border:0;border-radius:28px;background:var(--rd-teal);color:white;box-shadow:0 5px 20px #163b3b20}
#rd-help .rd-launch:hover,#rd-help .rd-start:hover{background:#116764}
#rd-help svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7}
#rd-help .rd-card{position:absolute;bottom:66px;left:0;width:304px;padding:23px;border:1px solid #e3e9e8;border-radius:20px;background:white;box-shadow:0 12px 40px #1933321c;animation:rd-arrive .2s ease-out}
#rd-help .rd-brand{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#637875;margin-bottom:13px}
#rd-help h2{font-size:20px;line-height:1.25;font-weight:600;margin:0 20px 8px 0;color:#202b2b}
#rd-help p{font-size:14px;margin:0 0 18px;color:#596866}
#rd-help .rd-close{position:absolute;right:5px;top:5px;width:44px;height:44px;border:0;background:transparent;color:#657572;font-size:23px;border-radius:50%}
#rd-help .rd-start{display:block;width:100%;padding:12px 15px;min-height:46px;border:0;border-radius:11px;background:var(--rd-teal);color:white;text-align:center}
#rd-help .rd-fallback{display:block;color:#167c79;margin-top:12px;font-size:13px}
html.rd-custom-help .b24-widget-button-wrapper,html.rd-custom-help .b24-widget-button-shadow{display:none!important}
@keyframes rd-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:767px){
 #rd-help{left:max(16px,env(safe-area-inset-left));--rd-bottom:16px}
 #rd-help .rd-launch{min-height:52px;padding:0 17px}
 #rd-help .rd-card{bottom:120px;width:min(304px,calc(100vw - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));padding:20px}
 }
@media(prefers-reduced-motion:reduce){#rd-help .rd-card{animation:none}}

/* v6: anchor the real Bitrix chat above the custom launcher. */
html.rd-custom-help .bx-livechat-wrapper.bx-livechat-show{
 position:fixed!important;
 left:var(--rd-chat-left,20px)!important;
 right:auto!important;
 top:auto!important;
 bottom:var(--rd-chat-bottom,84px)!important;
 margin:0!important;
 transform:none!important;
 max-width:var(--rd-chat-width,calc(100vw - 36px))!important;
 max-height:var(--rd-chat-height,calc(100dvh - 100px))!important;
 min-width:0!important;
 min-height:0!important;
 box-sizing:border-box!important;
}

/* v8: align both launchers at the bottom; no invitation on phones. */
@media(max-width:767px){
 #rd-help .rd-card{display:none!important}
 }

/* Load after widget.css. Only the Bitrix chat is affected. */
html.rd-custom-help .bx-livechat-wrapper{font-family:Arial,Helvetica,sans-serif!important;color:#253734!important;font-size:15px!important;line-height:1.5!important;border-radius:20px!important;box-shadow:0 12px 40px #19333224!important;background:#fff!important}
html.rd-custom-help .bx-livechat-wrapper.bx-livechat-show{width:360px!important;height:480px!important}
html.rd-custom-help .bx-livechat-box{border-radius:20px!important;overflow:hidden!important;background:#fff!important}
html.rd-custom-help .bx-livechat-head{background:#167c79!important;min-height:64px!important;box-sizing:border-box!important}
html.rd-custom-help .bx-livechat-title{font:600 16px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;padding:0 14px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.rd-custom-help .bx-livechat-control-btn{min-width:44px!important;min-height:44px!important}
html.rd-custom-help .bx-livechat-body{background:#f7f9f8!important;min-height:0!important}
html.rd-custom-help .bx-livechat-help-container{box-sizing:border-box!important;margin:auto!important;padding:28px 24px!important;width:100%!important;max-width:360px!important;text-align:left!important}
html.rd-custom-help .bx-livechat-help-title{font:600 20px/1.3 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;color:#253734!important;margin:0 0 12px!important;padding:0!important;text-align:left!important;max-width:none!important}
html.rd-custom-help .bx-livechat-help-user{display:none!important}
html.rd-custom-help .rd-chat-intro{font:400 15px/1.6 Arial,Helvetica,sans-serif!important;color:#586963!important;margin:0!important}
html.rd-custom-help .bx-im-message{font-family:Arial,Helvetica,sans-serif!important;font-size:15px!important;line-height:1.5!important}
html.rd-custom-help .bx-livechat-textarea{border-top:1px solid #e1e9e5!important;background:#fff!important;flex:0 0 108px!important}
html.rd-custom-help .bx-im-textarea-input{font:400 16px/1.5 Arial,Helvetica,sans-serif!important;letter-spacing:0!important;color:#253734!important;background:#fff!important}
html.rd-custom-help .bx-im-textarea-input::placeholder{color:#75817d!important;opacity:1}
@media(max-width:767px){html.rd-custom-help .bx-livechat-wrapper.bx-livechat-show{width:calc(100vw - 32px)!important;height:480px!important}}
/* v11: contact form, scoped to the live chat only. Field names/validation stay native. */
html.rd-custom-help .bx-livechat-wrapper .b24-form{--b24-font-family:Arial,Helvetica,sans-serif;--b24-primary-color:#167c79;--b24-primary-text-color:#fff;--b24-text-color:#253734;--b24-background-color:#fff;font-family:Arial,Helvetica,sans-serif!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-wrapper{min-width:0!important;width:100%!important;max-width:100%!important;box-shadow:none!important;border:1px solid #e1e9e5!important;border-radius:16px!important;background:#fff!important;overflow:hidden!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-border-bottom{border-bottom:1px solid #e1e9e5!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-padding-side{padding-left:18px!important;padding-right:18px!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-header{padding-top:20px!important;padding-bottom:12px!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-header-description{font:600 18px/1.35 Arial,sans-serif!important;color:#253734!important;margin:0!important;text-align:left!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-field{margin-bottom:16px!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-string .b24-form-control-container{display:flex!important;flex-direction:column!important;padding:0!important;background:transparent!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-string .b24-form-control-label{position:static!important;order:-1!important;transform:none!important;padding:0!important;margin:0 0 7px!important;font:400 13px/1.4 Arial,sans-serif!important;color:#53655f!important;opacity:1!important;white-space:normal!important;pointer-events:auto!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-string input.b24-form-control{box-sizing:border-box!important;min-height:48px!important;height:48px!important;width:100%!important;padding:11px 12px!important;border:1px solid #cddad4!important;border-radius:10px!important;background:#fff!important;color:#253734!important;font:400 16px/1.5 Arial,sans-serif!important;box-shadow:none!important}
html.rd-custom-help .bx-livechat-wrapper input.b24-form-control:focus{outline:2px solid #167c79!important;outline-offset:2px!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-alert-message{font:400 12px/1.4 Arial,sans-serif!important;color:#b33140!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-field-agreement .b24-form-control-desc,html.rd-custom-help .bx-livechat-wrapper .b24-form-field-agreement-link{font:400 13px/1.5 Arial,sans-serif!important;letter-spacing:0!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-field-agreement-link{color:#167c79!important;text-decoration:underline!important;text-underline-offset:2px}
html.rd-custom-help .bx-livechat-wrapper .b24-form-field-agreement input[type=checkbox]{accent-color:#167c79}
html.rd-custom-help .bx-livechat-wrapper .b24-form-btn{min-height:46px!important;border-radius:11px!important;background:#167c79!important;border-color:#167c79!important;color:#fff!important;font:500 15px/1.4 Arial,sans-serif!important;padding:12px 16px!important;box-shadow:none!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-btn:focus-visible{outline:2px solid #167c79;outline-offset:3px}
html.rd-custom-help .bx-livechat-wrapper .b24-form-btn-container{padding-top:0!important;padding-bottom:18px!important}
/* Restyle both native success variants without changing when they appear. */
html.rd-custom-help .bx-livechat-wrapper .bx-imopenlines-form-success,html.rd-custom-help .bx-livechat-wrapper .b24-form-success{background:#edf6f2!important;border:1px solid #cfe4dc!important;border-radius:16px!important;color:#253734!important;box-shadow:none!important;min-height:0!important;padding:24px 20px!important}
html.rd-custom-help .bx-livechat-wrapper .bx-imopenlines-form-success .bx-imopenlines-form-result-title,html.rd-custom-help .bx-livechat-wrapper .b24-form-success .b24-form-state-text,html.rd-custom-help .bx-livechat-wrapper .b24-form-success .b24-form-state-text p{font:500 17px/1.45 Arial,sans-serif!important;color:#253734!important;margin:0!important;padding:0!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-success .b24-form-state-inner{padding:0!important;margin:0!important}
html.rd-custom-help .bx-livechat-wrapper .bx-imopenlines-form-success .bx-imopenlines-form-result-icon,html.rd-custom-help .bx-livechat-wrapper .b24-form-success-icon{position:relative!important;width:36px!important;height:36px!important;margin:0 auto 14px!important;background:#d8eee5!important;background-image:none!important;border-radius:50%!important;box-shadow:none!important}
html.rd-custom-help .bx-livechat-wrapper .bx-imopenlines-form-success .bx-imopenlines-form-result-icon::before,html.rd-custom-help .bx-livechat-wrapper .b24-form-success-icon::before{display:none!important}
html.rd-custom-help .bx-livechat-wrapper .bx-imopenlines-form-success .bx-imopenlines-form-result-icon::after,html.rd-custom-help .bx-livechat-wrapper .b24-form-success-icon::after{content:'✓'!important;position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;background:none!important;transform:none!important;width:auto!important;height:auto!important;border:0!important;font:500 22px/1 Arial,sans-serif!important;color:#167c79!important}
html.rd-custom-help .bx-livechat-wrapper .rd-hide-chat-download,html.rd-custom-help .bx-livechat-control-box [title="Скачать переписку"],html.rd-custom-help .bx-livechat-control-box [aria-label="Скачать переписку"]{display:none!important}
/* Prevent overlap during native close animations as well. */
html.rg-open .bx-livechat-wrapper,html.rg-open #rd-help .rd-card{visibility:hidden!important;pointer-events:none!important}
/* v13: validation text takes up real space rather than covering the submit button. */
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-alert-message{position:static!important;inset:auto!important;max-width:100%!important;width:auto!important;margin:8px 0 0!important;padding:8px 10px!important;background:#fff1ee!important;border:1px solid #f1d4cc!important;border-radius:8px!important;color:#a33428!important;white-space:normal!important;line-height:1.4!important;transform:none!important;animation:none!important;box-sizing:border-box!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-alert-message::before,html.rd-custom-help .bx-livechat-wrapper .b24-form-control-alert-message::after{display:none!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-control-alert-message a{color:#a33428!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-field-agreement{margin-bottom:20px!important}
/* Preserve loader visibility rules and live region. Only replace its illustration. */
html.rd-custom-help .bx-livechat-wrapper .b24-form-loader-icon{position:relative!important;inset:auto!important;transform:none!important;width:32px!important;height:32px!important;margin:24px auto!important;background:none!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-loader-icon svg{display:none!important}
html.rd-custom-help .bx-livechat-wrapper .b24-form-loader-icon::after{content:'';position:absolute;inset:0;box-sizing:border-box;border:3px solid #dcece5;border-top-color:#167c79;border-radius:50%;animation:rd-form-spin .8s linear infinite}
@keyframes rd-form-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html.rd-custom-help .bx-livechat-wrapper .b24-form-loader-icon::after{animation:none}}
/* v14: the site hides .dlay-cookienotice-load at <=768px.
   Only show the module's active state; its consent handler remains unchanged. */
@media (max-width:768px) {
  html body #dlay-cookienotice-modal {
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:0!important;
    top:auto!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom, 0px))!important;
    box-sizing:border-box!important;
    border-radius:16px 16px 0 0!important;
    background:#fff!important;
    color:#384340!important;
    box-shadow:0 -4px 24px #1933321a!important;
    max-height:55vh;
    max-height:55dvh;
    overflow:auto!important;
    overscroll-behavior:contain;
    transition:none!important;
  }
  html body #dlay-cookienotice-modal:not(.dlay-cookienotice-load) {
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(110%)!important;
  }
  html body #dlay-cookienotice-modal.dlay-cookienotice-load:not([hidden]) {
    /* Override the mobile stylesheet, but let the native inline display:none close it. */
    display:block;
    transform:translateY(0)!important;
  }
  html body #dlay-cookienotice-modal .dlay-cookienotice-text {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
    gap:12px!important;
  }
  html body #dlay-cookienotice-modal .dlay-cookienotice-p {
    font:400 13px/1.45 Arial,sans-serif!important;
    margin:0!important;
    overflow-wrap:anywhere;
  }
  html body #dlay-cookienotice-modal .dlay-cookienotice-button {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:44px!important;
    height:auto!important;
    flex-shrink:0!important;
    margin:0!important;
    padding:12px 18px!important;
    border:0!important;
    border-radius:10px!important;
    background:#167c79!important;
    color:#fff!important;
    font:500 14px/1.4 Arial,sans-serif!important;
    cursor:pointer;
    touch-action:manipulation;
  }
}
