/* ============================================================
   FIX: Подавление дублирующих нативных окон успеха Тильды
   при отправке через кастомные формы и модальные окна
   ============================================================ */
.t-form__successbox,
.r .js-successbox:not(#drMSuccess):not(#lgLeadSuccess):not(#lsFormSuccess) {
  display: none !important;
}

/* Скрываем нативные всплывающие окна Тильды, привязанные к техническим попап-формам моста */
.t-popup[data-tooltip-hook*="myform"],
.t-popup[data-tooltip-hook*="leadform"],
.r[data-record-type="702"] .t-popup,
.r[data-record-type="BF502N"] .t-popup {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* ============================================================
   FIX: Ускорение LCP и устранение NO_LCP (Google PageSpeed)
   Мгновенное отображение контента первого экрана без задержек
   ============================================================ */
.t-records_animated {
  opacity: 1 !important;
}


/* ============================================================
   CRO ENHANCEMENTS: Mobile Sticky Bar, Channel Selector, Microcopy
   ============================================================ */

/* 1. Mobile Sticky Bar (Только на мобильных <= 768px) */
.dr-mobile-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .dr-mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 999999;
    gap: 8px;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 74px !important;
  }
  .dr-sticky-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    color: #4a4a4a;
    padding: 6px 4px;
    border-radius: 10px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 1.1;
  }
  .dr-sticky-btn svg {
    width: 22px;
    height: 22px;
  }
  .dr-sticky-btn--tg {
    color: #229ED9;
  }
  .dr-sticky-btn--phone {
    color: #2b825b;
  }
  .dr-sticky-btn--cta {
    flex: 1.5;
    background: #7A9B7E;
    color: #ffffff !important;
    padding: 10px 10px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(122, 155, 126, 0.35);
  }
  .dr-sticky-btn--cta span {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
  }
}

/* 2. Channel Selector в модальных окнах */
.dr-channel-select {
  margin: 10px 0 14px 0;
  background: #f7f6f4;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.06);
}
.dr-channel-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  margin-bottom: 8px;
  text-align: left;
}
.dr-channel-chips {
  display: flex;
  gap: 8px;
}
.dr-channel-chip {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid #e5e5ea;
  background: #ffffff;
  color: #2c2c2e;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dr-channel-chip svg {
  width: 17px;
  height: 17px;
}
.dr-channel-chip.active {
  border-color: #229ED9;
  background: #eef7fc;
  color: #176f99;
}
.dr-channel-chip--phone.active {
  border-color: #34c759;
  background: #eefbf1;
  color: #1c7430;
}

/* 3. Микрокопирайтинг под кнопками */
.dr-form-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8e8e93;
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
}
.dr-form-microcopy svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  fill: currentColor;
}