/* Убираем скролл бар */

.t396__artboard.rendered{
  overflow-x: auto !important;
  overflow-y: hidden !important;

  -ms-overflow-style: none;   /* IE / Edge */
  scrollbar-width: none;      /* Firefox */
}

/* Chrome / Safari */
.t396__artboard.rendered::-webkit-scrollbar{
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}


/* Стили контейнера поп-ап под квиз */

#quizOverlay {
  position: absolute;
  inset: 0;

  background: rgba(214, 236, 247, 0.8); /* #d6ecf7 с 80% прозрачностью */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quiz-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #62E5DB; /* твой фирменный цвет */
  border-radius: 50%;
  animation: quizSpin 0.8s linear infinite;
}

@keyframes quizSpin {
  100% { transform: rotate(360deg); }
}    

#quizFrameWrap { position: relative; }

#quizFrameWrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity .18s ease;
}

#quizFrameWrap iframe.is-active {
  opacity: 1;
}

/* Курсор как у ссылки для всех кликабельных элементов квиза */
[data-quiz-open],
[data-quiz-go],
[data-quiz-close],
[data-not-close-open] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* убирает серую подсветку на iOS */
  user-select: none;
}

/* На всякий случай: если это ссылки , убираем подчёркивание */
a[data-quiz-open],
a[data-quiz-go],
a[data-quiz-close],
[data-not-close-open] {
  text-decoration: none;
}

/* Поп-ап поверх квиз-опроса с номером телефона */

:root{
    --m-overlay: rgba(1, 52, 154, 0.45);
    --m-radius: 40px;
    --m-shadow: 0 18px 50px rgba(0,0,0,.20);
    --m-text: #111;
    --m-muted: #475569;
    --m-link: #1f7aff;
    --m-primary: #1e88e5;
    --m-primary-text: #fff;
    --m-ghost-bg: #eef0f3;
    --m-ghost-text: #111;
  }

  .m-popup{
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999999999;
  }
  .m-popup.is-open{ display: block; }

  .m-popup__overlay{
    position: absolute;
    inset: 0;
    background: var(--m-overlay);
  }

  .m-popup__dialog{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: min(92vw, 420px);
    background: #fff;
    border-radius: var(--m-radius);
    box-shadow: var(--m-shadow);
    padding: 50px 30px 30px;
    font-family: 'TildaSans', Arial, sans-serif;
    line-height: 1.15;
    letter-spacing: -1.2px;
    box-sizing: border-box;
  }

  .m-popup__close{
    position: absolute;
    right: 14px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #222;
  }

.m-popup__close,
.m-popup__close:focus,
.m-popup__close:focus-visible,
.m-popup__close:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.m-popup__close::-moz-focus-inner {
  border: 0;
}

.m-popup__close {
  -webkit-appearance: none;
  appearance: none;
}

  .m-popup__title{
    margin: 0 34px 14px 0;
    line-height: 1.2;
    color: var(--m-text);
    font-weight: 600;
  }

  .m-popup__text{
    margin: 0 0 20px;
    color: var(--m-muted);
    font-size: 16px;
    line-height: 1.15;
    letter-spacing: -0.6px;
    font-weight: 500;
  }

  .m-popup__phone{
    display: inline-block;
    margin: 0 0 20px;
    color: var(--m-link);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
  }

  .m-popup__actions{
    display: grid;
    gap: 8px;
  }

  .m-btn{
    width: 100%;
    border-radius: 18px;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
  }
  .m-btn--primary{
    background: var(--m-primary);
    color: var(--m-primary-text);
  }
  .m-btn--ghost{
    background: var(--m-ghost-bg);
    color: var(--m-ghost-text);
  }

  /* Блокируем скролл, когда попап открыт */
  body.m-noscroll{ overflow: hidden; }