.ray-site-menu-button{
  position:fixed;
  top:18px;
  left:18px;
  z-index:99999;

  width:44px;
  height:44px;

  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;

  background:rgba(18,20,24,.88);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);

  color:#fff;
  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:0 8px 30px rgba(0,0,0,.16);
}

.ray-site-menu-icon,
.ray-site-menu-icon:before,
.ray-site-menu-icon:after{
  width:18px;
  height:1.5px;
  background:#fff;
  display:block;
  position:relative;
  border-radius:2px;
}

.ray-site-menu-icon:before,
.ray-site-menu-icon:after{
  content:"";
  position:absolute;
  left:0;
}

.ray-site-menu-icon:before{top:-6px}
.ray-site-menu-icon:after{top:6px}

.ray-site-menu{
  position:fixed;
  top:70px;
  left:18px;
  z-index:99998;

  width:245px;
  padding:10px;

  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;

  background:rgba(18,20,24,.96);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);

  box-shadow:0 18px 50px rgba(0,0,0,.28);

  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);

  transition:.18s ease;
}

.ray-site-menu.open{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.ray-site-menu-title{
  padding:10px 12px 8px;
  color:#828894;
  font-size:11px;
  letter-spacing:.15em;
  text-transform:uppercase;
}

.ray-site-menu a{
  display:block;
  padding:11px 12px;
  margin:2px 0;

  border-radius:11px;

  color:#fff !important;
  text-decoration:none !important;

  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;

  transition:.15s ease;
}

.ray-site-menu a:hover{
  background:rgba(255,255,255,.09);
}

.ray-site-footer{
  width:100%;
  box-sizing:border-box;

  padding:34px 20px 26px;
  margin-top:45px;

  text-align:center;

  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:13px;
  line-height:1.8;

  opacity:.72;
}

.ray-site-footer a{
  color:inherit !important;
  text-decoration:none !important;
  margin:0 7px;
}

.ray-site-footer a:hover{
  text-decoration:underline !important;
}

@media(max-width:600px){
  .ray-site-menu-button{
    top:12px;
    left:12px;
  }

  .ray-site-menu{
    top:62px;
    left:12px;
    width:calc(100vw - 24px);
    max-width:280px;
  }
}

/* =========================================
   RAY MODAL PAGES
   ========================================= */

html.ray-modal-open,
html.ray-modal-open body{
  overflow:hidden !important;
}

.ray-modal-overlay{
  position:fixed;
  inset:0;
  z-index:99990;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:42px;

  background:rgba(12,14,18,.40);

  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);

  opacity:0;
  visibility:hidden;

  transition:
    opacity .22s ease,
    visibility .22s ease;
}

.ray-modal-overlay.open{
  opacity:1;
  visibility:visible;
}

.ray-modal-shell{
  width:min(1180px, 92vw);
  height:min(840px, 88vh);

  display:flex;
  flex-direction:column;

  overflow:hidden;

  background:#fff;

  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;

  box-shadow:
    0 35px 100px rgba(0,0,0,.28);

  transform:
    translateY(14px)
    scale(.985);

  transition:transform .25s ease;
}

.ray-modal-overlay.open .ray-modal-shell{
  transform:
    translateY(0)
    scale(1);
}

.ray-modal-header{
  height:66px;
  min-height:66px;

  display:grid;
  grid-template-columns:60px 1fr auto;
  align-items:center;

  padding:0 14px;

  border-bottom:1px solid #e8eaee;

  background:rgba(255,255,255,.95);

  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.ray-modal-title{
  padding:0 14px;

  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;

  text-align:center;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;

  font-weight:600;
  font-size:15px;

  color:#17191d;
}

.ray-modal-header-actions{
  display:flex;
  align-items:center;
  gap:7px;
}

.ray-modal-nav,
.ray-modal-close{
  width:40px;
  height:40px;

  border:0;
  border-radius:12px;

  background:#f1f3f6;
  color:#14161a;

  cursor:pointer;

  font-size:19px;
  line-height:1;

  transition:
    background .15s ease,
    transform .15s ease;
}

.ray-modal-nav:hover,
.ray-modal-close:hover{
  background:#e6e9ee;
}

.ray-modal-nav:active,
.ray-modal-close:active{
  transform:scale(.94);
}

.ray-modal-close{
  font-size:24px;
}

.ray-modal-progress{
  height:4px;

  display:flex;
  gap:4px;

  padding:0 18px;

  background:#fff;
}

.ray-modal-progress span{
  flex:1;

  height:2px;
  margin-top:1px;

  border-radius:99px;

  background:#e4e7ec;

  transition:background .2s ease;
}

.ray-modal-progress span.active{
  background:#20242b;
}

.ray-modal-body{
  flex:1;
  min-height:0;

  background:#f6f7f9;
}

.ray-modal-frame{
  display:block;

  width:100%;
  height:100%;

  border:0;
  background:#f6f7f9;
}

/*
 * Когда дочерняя страница открыта внутри модального окна,
 * её собственное глобальное меню/футер не нужны.
 */

html.ray-embedded .ray-site-menu-button,
html.ray-embedded .ray-site-menu,
html.ray-embedded .ray-site-footer,
html.ray-embedded .back-home{
  display:none !important;
}

/* Mobile */

@media(max-width:700px){

  .ray-modal-overlay{
    padding:12px;
    align-items:center;
  }

  .ray-modal-shell{
    width:100%;
    height:calc(100dvh - 24px);

    border-radius:22px;
  }

  .ray-modal-header{
    height:58px;
    min-height:58px;

    grid-template-columns:48px 1fr auto;

    padding:0 8px;
  }

  .ray-modal-title{
    font-size:14px;
    padding:0 6px;
  }

  .ray-modal-nav,
  .ray-modal-close{
    width:36px;
    height:36px;
  }

}

/* Простая шапка всплывающих страниц без перелистывания */

.ray-modal-header-simple{
  display:grid !important;
  grid-template-columns:1fr 44px !important;
  padding-left:22px !important;
  padding-right:12px !important;
}

.ray-modal-header-simple .ray-modal-title{
  text-align:left;
  padding:0 !important;
}

.ray-modal-header-simple .ray-modal-close{
  justify-self:end;
}

/* Старые элементы навигации больше нигде не показываем */
.ray-modal-prev,
.ray-modal-next,
.ray-modal-nav,
.ray-modal-progress{
  display:none !important;
}

/* ===== RAY MENU BUTTON WITH LABEL ===== */

.ray-site-menu-button{
    width:auto !important;
    min-width:92px !important;
    height:44px !important;

    padding:0 16px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;

    border-radius:15px !important;
}

.ray-site-menu-label{
    display:block;

    font-size:12px;
    line-height:1;

    font-weight:650;
    letter-spacing:.04em;

    white-space:nowrap;

    color:inherit;
}

/* телефон */
@media (max-width:700px){

    .ray-site-menu-button{
        min-width:88px !important;
        height:42px !important;

        padding:0 14px !important;

        gap:9px !important;

        border-radius:14px !important;
    }

    .ray-site-menu-label{
        font-size:11px;
    }
}

/* ===== END RAY MENU BUTTON WITH LABEL ===== */


/* ===== RAY MOBILE MAIN LAYOUT FINAL ===== */

@media (max-width:760px){

    /*
     * Карточка состояния
     */
    body.ray-home .system-status{
        position:fixed !important;

        top:104px !important;
        left:14px !important;
        right:14px !important;
        bottom:auto !important;

        width:auto !important;
        max-width:none !important;

        transform:none !important;
        transform-origin:center top !important;

        margin:0 !important;

        z-index:20 !important;
    }


    /*
     * Весь центральный блок RAY.
     * Важно: перебиваем top:40% из ray-unified.css.
     */
    body.ray-home .ray-secure-title{
        position:fixed !important;

        top:320px !important;

        left:16px !important;
        right:16px !important;

        width:auto !important;
        max-width:none !important;

        margin:0 !important;

        transform:none !important;

        text-align:center !important;

        z-index:4 !important;
    }


    body.ray-home .ray-secure-title h2{
        margin-left:auto !important;
        margin-right:auto !important;
    }


    body.ray-home .ray-secure-title .line{
        margin-left:auto !important;
        margin-right:auto !important;
    }


    body.ray-home .ray-secure-title p{
        margin-left:auto !important;
        margin-right:auto !important;

        max-width:360px !important;
    }
}


@media (max-width:430px){

    body.ray-home .system-status{
        top:102px !important;
        left:12px !important;
        right:12px !important;
    }

    body.ray-home .ray-secure-title{
        top:315px !important;

        left:12px !important;
        right:12px !important;
    }
}


@media (max-width:390px){

    body.ray-home .ray-secure-title{
        top:310px !important;
    }

}

/* ===== END RAY MOBILE MAIN LAYOUT FINAL ===== */


/* ===== RAY MOBILE MENU PANEL FIX ===== */

@media (max-width:700px){

    /*
     * Кнопка меню всегда выше модального окна.
     */
    .ray-site-menu-button{
        z-index:10020 !important;
    }


    /*
     * Само раскрытое меню.
     */
    .ray-site-menu{
        position:fixed !important;

        top:74px !important;
        left:12px !important;
        right:auto !important;
        bottom:auto !important;

        width:min(330px, calc(100vw - 24px)) !important;
        max-width:calc(100vw - 24px) !important;

        padding:10px !important;

        flex-direction:column !important;
        align-items:stretch !important;
        justify-content:flex-start !important;

        gap:4px !important;

        border-radius:20px !important;

        overflow-x:hidden !important;
        overflow-y:auto !important;

        max-height:calc(100dvh - 100px) !important;

        box-sizing:border-box !important;

        z-index:10010 !important;
    }


    /*
     * Когда меню открыто — строго вертикальный список.
     */
    .ray-site-menu.open{
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
    }


    .ray-site-menu-title{
        width:100% !important;

        padding:13px 14px 10px !important;

        margin:0 !important;

        box-sizing:border-box !important;

        white-space:nowrap !important;

        text-align:left !important;
    }


    /*
     * Каждый пункт занимает отдельную строку.
     */
    .ray-site-menu a{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;

        display:flex !important;
        align-items:center !important;

        padding:13px 14px !important;
        margin:0 !important;

        box-sizing:border-box !important;

        white-space:normal !important;
        overflow-wrap:anywhere !important;

        line-height:1.3 !important;
        text-align:left !important;

        border-radius:12px !important;

        flex:0 0 auto !important;
    }


    /*
     * Длинное название политики не растягивает меню.
     */
    .ray-site-menu a:nth-of-type(3){
        font-size:13px !important;
    }
}


@media (max-width:390px){

    .ray-site-menu{
        top:70px !important;

        left:10px !important;

        width:calc(100vw - 20px) !important;
        max-width:calc(100vw - 20px) !important;

        border-radius:18px !important;
    }

    .ray-site-menu a{
        padding:12px 13px !important;
        font-size:13px !important;
    }
}

/* ===== END RAY MOBILE MENU PANEL FIX ===== */


/* =========================================================
   RAY WINDOW SYSTEM — AUTHORITATIVE RULES
   ========================================================= */


/*
 * Страница внутри iframe всегда может прокручиваться.
 */

html.ray-embedded{
    height:auto !important;
    min-height:100% !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    -webkit-overflow-scrolling:touch !important;
}


html.ray-embedded body,
body.ray-embedded-body{

    position:relative !important;

    height:auto !important;
    min-height:100% !important;
    max-height:none !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    -webkit-overflow-scrolling:touch !important;

    touch-action:pan-y !important;
}


/*
 * Главная при открытом окне не прокручивается.
 */

html.ray-modal-open,
body.ray-modal-open{
    overflow:hidden !important;
}





/* =========================================================
   END RAY WINDOW SYSTEM
   ========================================================= */
