/*
 Theme Name:   Nestin Child
 Theme URI:    http://nestin.bold-themes.com
 Description:  Nestin child theme
 Author:       BoldThemes
 Author URI:   http://bold-themes.com
 Template:     nestin
 Version:      1.0.0
 Tags:         one-column, right-sidebar, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready
 Text Domain:  nestin-child
*/


/* Theme customization starts here
-------------------------------------------------------------- */

.mainHeader a {
  color: #99732b;
}
.mainHeader a * {
  color: #99732b;
}
.menuPort nav ul li a:hover {
  color: #2B3C2C;
}

.topBarInMenu a {
  font-size: 20px;
}

.nxp-btn a {
  width: 100%;
}

.btMenuHorizontal .menuPort nav > ul > li.current-menu-ancestor > a:before, .btMenuHorizontal .menuPort nav > ul > li.current-menu-item > a:before {
  opacity: 0;
}







.nxp-icons .bt_bb_column > div,
.nxp-icons .bt_bb_column > div > div,
.nxp-icons .bt_bb_column > div > div > div,
.nxp-icons .bt_bb_column > div > div > div > div {
  height: 100%;
}
.nxp-icons .bt_bb_row_holder {
  margin-bottom: 30px;
}

.nxp-icon { 
  background-color: #F5ECDE;
  padding: 15px;
  margin-bottom: 5px; 
  border-radius: 12px;
}
.nxp-icon img {
  width: 80px;
}
.nxp-icon p {
  margin-bottom: 0;
}
.nxp-icons h5 { 
  text-transform: uppercase!important;
  font-size: 20px!important;
}

.btAccentAlternateHeader .btVerticalMenuTrigger .bt_bb_icon:before,
.btAccentAlternateHeader .btVerticalMenuTrigger .bt_bb_icon:after,
.btAccentAlternateHeader .btVerticalMenuTrigger .bt_bb_icon .bt_bb_icon_holder:before {
  border-top-color: #99732b;
}

.btVerticalHeaderTop {
  transition: transform 1s cubic-bezier(.230,1,.320,1)!important;
}

.bt_bb_css_image_grid_item .bt_bb_css_image_grid_item_inner,
.bt_bb_css_image_grid_item .bt_bb_css_image_grid_item_inner_image,
.bt_bb_css_image_grid_item .bt_bb_css_image_grid_item_inner_image img {
  width: 100%;
}

.nxp-btn a {
  justify-content: space-between;
}
.nxp-btn a::before {
  display: none!important;
}
.nxp-whatsapp a {
  background-color: #7AAC79!important;
  box-shadow: none!important;
}
.nxp-telegram a {
  background-color: #475F9D!important;
  box-shadow: none!important;
}

.btLightSkin,
.btLightSkin .btSiteFooterCopyMenu {
  background-color: #C0AD82!important;
}

.btFooterMenu a,
.copyLine {
  color: #fff;
}

/* тема попап */
.pum-theme-lightbox .pum-container {
  border: none!important;
}
.pum-theme-lightbox .pum-container p {
  margin-bottom: 0;
}
.wpcf7-spinner {
  position: absolute;
  right: 0;
  bottom: 0;
}
.wpcf7-submit {
  border-radius: 1.5em;
}
/* тема попап end */





@media only screen and (min-width: 1500px) {
  .slick-arrow {
    bottom: 6em!important;
  }
}

@media only screen and (max-width: 1200px) {
  .topBarInMenuCell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .topBarInMenu a {
    flex: 0 0 25%;
    font-size: 22px;
  }
  .btWidgetWithText .btIconWidgetIcon {
    display: none!important;
  }
  .btMenuVertical .mainHeader .topBarInMenu .btIconWidget:not(.btWidgetWithText) {
    margin-left: 0;
  }
  .btMenuVertical .mainHeader .topBarInMenu .btIconWidget.btWidgetWithText {
    padding-top: 10px;
    margin-left: .25em;
  }
  .btMenuVertical .mainHeader .topBarInMenu .btIconWidget.btWidgetWithText .btIconWidgetContent {
    margin-left: 0;
  }
}
@media only screen and (max-width: 993px) {
  .nxp-icons > div { 
    gap: 30px;
  }
}



















/* Основное позиционирование попапа */
.popup-expert {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 910;
}

/* Стили для аватара эксперта (круглая иконка) */
.popup-expert__broker {
  position: relative;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: none;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid rgba(71, 96, 156, 0.1);
  filter: drop-shadow(0px 15px 15px rgba(71, 96, 156, 0.2));
}

.popup-expert__broker > img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  min-width: 80px;
}

/* Зелёная точка "онлайн" */
.popup-expert__broker:after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: green;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Тело всплывающего окна */
.popup-expert__body {
  min-width: 210px;
  padding: 22px;
  background-color: #fff;
  border: 1px solid rgba(71, 96, 156, 0.1);
  box-shadow: 0 20px 20px rgba(71, 96, 156, 0.1);
  border-radius: 5px 0 5px 5px;
  position: relative;
  text-align: center;
  display: none;
}

.popup-expert__body > img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

/* Кнопка закрытия */
.popup-expert__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-image: url("/wp-content/themes/nestin-child/img/close-expert.svg"); /* Сохранён оригинальный путь */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

/* Имя и подпись */
.popup-expert__name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 2px;
}

.popup-expert__subtitle {
  font-size: 12px;
  line-height: 1.1;
  margin: 0 auto 20px;
  max-width: 146px;
}

/* Блок соцсетей */
.popup-expert__soc {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Иконки мессенджеров — используются классы из HTML */
.icon-whatsapp {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon-telegram {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Телефон */
.popup-expert__phone > a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

/* Адаптив: мобильные устройства */
@media (max-width: 768px) {
  .popup-expert {
    right: 20px;
    bottom: 20px;
  }

  .popup-expert__broker,
  .popup-expert__mobile {
    width: 58px;
    height: 58px;
  }

  .popup-expert__broker > img,
  .popup-expert__mobile > img {
    width: 58px;
    height: 58px;
    min-width: 58px;
  }

  .popup-expert__body {
    min-width: 180px;
    padding: 18px;
  }

  .popup-expert__body > img {
    width: 60px;
    height: 60px;
  }

  .popup-expert__name {
    font-size: 15px;
  }

  .popup-expert__subtitle {
    font-size: 11px;
    max-width: 130px;
  }

  .popup-expert__soc {
    gap: 12px;
  }

  .icon-whatsapp,
  .icon-telegram {
    width: 20px;
    height: 20px;
  }
}

.popup-expert__body {
    background-color: #fff;
    border: 1px solid rgba(71, 96, 156, .1);
    border-radius: 35px 0 35px 35px;
    box-shadow: 0 20px 20px rgba(71, 96, 156, .1);
    display: none;
    min-width: 210px;
    padding: 22px;
    position: relative;
    text-align: center;
}
.popup-expert__close {
    background-image: url(/wp-content/themes/nestin-child/img/cross-expert.svg);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    height: 20px;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
}
.popup-expert__soc {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}
.popup-expert__soc .icon-whatsapp {
    background-image: url(/wp-content/themes/nestin-child/img/whatsapp-green.svg);
}
.icon-telegram_blue {
    background-image: url(/wp-content/themes/nestin-child/img/telegram-blue.svg);
}
.icon-whatsapp {
  display: inline-block;
    height: 22px;
    width: 23px;
}
.icon-telegram {
  display: inline-block;
    height: 22px;
    width: 26px;
}
.popup-expert__soc .icon-facebook, .popup-expert__soc .icon-telegram {
    height: 21px;
}