/* Палитра (можно править под бренд) */
  :root {
    --cbg: #8ac2be;           /* основной бирюзовый */
    --cbg-hover: #78b0ad;
    --ring: rgba(138,194,190,.35);
    --text: #1f2937;          /* тёмно-серый */
    --muted: #6b7280;         /* серый для подсказок */
    --white: #fff;
    --overlay: rgba(17,24,39,.65);
  }

  /* Плавающая круглая кнопка */
  .cb-call-widget {
    position: fixed; z-index: 9999; right: 22px; bottom: 22px;
    width: 84px; height: 84px; border-radius: 50%;
    background: var(--cbg); color: var(--white);
    display: grid; place-items: center; box-shadow: 0 10px 22px rgba(0,0,0,.18);
    cursor: pointer; transition: transform .2s ease, background .2s ease;
  }
  .cb-call-widget:hover { transform: translateY(-2px) scale(1.03); background: var(--cbg-hover); }
  .cb-call-widget:active { transform: translateY(0) scale(.98); }

  /* Иконка трубки (SVG) */
  .cb-call-widget svg { 
      
      width: 36px;
      height: 36px; 
      
      margin-right: 95%;
      
      
  }

  /* Пульсирующие кольца */
  .cb-ring, .cb-ring::after {
    content: ""; position: absolute; inset: -10px; border-radius: 50%;
    box-shadow: 0 0 0 10px var(--ring);
    animation: cb-pulse 2.4s ease-out infinite;
  }
  .cb-ring::after { animation-delay: .8s; }
  @keyframes cb-pulse {
    0% { opacity: .8; transform: scale(.7); }
    70% { opacity: 0; transform: scale(1.25); }
    100% { opacity: 0; transform: scale(1.25); }
  }

  /* Балун-подсказка */
  .cb-bubble {
    position: fixed; right: 120px; bottom: 88px; max-width: 320px;
    background: var(--cbg); color: var(--white); padding: 14px 18px; border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,.14); font: 600 16px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    transform-origin: 100% 100%; transform: scale(.9); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease; 
  }
  .cb-bubble::after { /* хвостик */
    content: ""; position: absolute; right: -8px; bottom: 14px; width: 0; height: 0;
    border-left: 10px solid var(--cbg); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  }
  .cb-bubble[data-show="1"] { opacity: 1; transform: scale(1); }

  /* Оверлей модалки */
  .cb-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 9998; display: none; }
  .cb-overlay[aria-hidden="false"] { display: block; }

  /* Модалка */
  .cb-modal {
    position: fixed; inset: 0; display: grid; place-items: center; z-index: 10000; pointer-events: none;
  }
  .cb-modal[aria-hidden="false"] { pointer-events: auto; }
  
  
  .cb-modal__panel {
  width: min(880px, 92vw);
  background: #f4f5f7;
  color: var(--text);
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  padding: clamp(20px, 4vw, 38px);
  position: relative;  /* чтобы крестик привязался */
  /* убери transform при закрытой модалке, оставь только прозрачность */
  opacity: 0;
  transition: opacity .22s ease;
}
.cb-modal[aria-hidden="false"] .cb-modal__panel {
  opacity: 1;
}
  
  
  
  .cb-title { font: 600 clamp(20px, 3.6vw, 40px)/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial; letter-spacing: .2px; }

  .cb-form { margin-top: 26px; display: grid; grid-template-columns: 1fr auto; gap: 0; border-radius: 10px; overflow: hidden; }
  .cb-input { padding: 18px 16px; border: 2px solid #e5e7eb; border-right: none; outline: none; font-size: 18px; background: #fff; }
  .cb-input:focus { border-color: var(--cbg); }
  
  
  .cb-btn { padding: 20 28px; font-size: 18px; font-weight: 700; letter-spacing: .2px; background: var(--cbg); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; 
  
      width: 100%;
      height: 86%;
      
      
  }
  .cb-btn:hover { background: var(--cbg-hover); 
      
      
      
  }
  
  

  .cb-hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
  .cb-meta { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }

  
  
.cb-close {
  position: absolute;
  top: 16px;          /* отступ сверху внутри паддинга */
  right: 16px;        /* отступ справа внутри паддинга */
  background: transparent;
  color: #000;
  border: 0;
  cursor: pointer;
  outline: 0;
  font-size: 26px;    /* крестик крупный */
  font-weight: 700;
  line-height: 1;
  z-index: 10;
  transition: color 0.3s ease-in-out;
}

.cb-close:hover {
  color: var(--cbg);
}

  .cb-close:hover {
  background: transparent !important;
  color: #000 !important;
}
  

  @media (max-width: 520px) {
    .cb-bubble { right: 22px; bottom: 118px; }
    .cb-bubble::after { right: 22px; }
    .cb-form { grid-template-columns: 1fr; }
    .cb-btn { padding: 16px; }
  }
  
  
 
 
 .cb-call-widget{ z-index:2147483647 !important; pointer-events:auto !important; }
  .cb-bubble{      z-index:2147483646 !important; }
  .cb-modal{       z-index:2147483647 !important; }
  .cb-overlay{     z-index:2147483645 !important; }
  .cb-ring, .cb-ring::after{ pointer-events:none !important; } /* пульс не перехватывает клик */
 
  
  
  /* на всякий случай даём приоритет клику по крестику */
  .cb-close{ pointer-events:auto !important; z-index:1; }
  .cb-modal{ z-index:2147483647 !important; }
  .cb-overlay{ z-index:2147483645 !important; }
  
  
  /* Делаем трубку «прямой» */
.cb-call-widget svg{
  transform: rotate(360deg);       /* подберите 90 / 45 / 135 как нравится */
  transform-origin: 50% 50%;
}


.cb-call-widget{
  width: 84px;
  height: 84px;
  aspect-ratio: 0 / 0;  /* держим идеальный круг */
  border-radius: 50%;
}

  
  
  /* Анимация дрожащей трубки */
@keyframes cb-double-ring {
  0%, 70%, 100% { transform: rotate(0deg); }   /* пауза */
  10% { transform: rotate(15deg); }
  15% { transform: rotate(-15deg); }
  20% { transform: rotate(10deg); }
  25% { transform: rotate(-10deg); }
  30% { transform: rotate(5deg); }
  
  /* вторая «дрожь» сразу за первой */
  40% { transform: rotate(15deg); }
  45% { transform: rotate(-15deg); }
  50% { transform: rotate(10deg); }
  55% { transform: rotate(-10deg); }
  60% { transform: rotate(0deg); }
}

.cb-call-widget svg {
  width: 36px;
  height: 36px;
  fill: #fff;
  animation: cb-double-ring 8s ease-in-out infinite;
  transform-origin: 50% 50%; /* центр вращения */
}
  
  
  
  
  
  
  /* Телефоны */
@media (max-width: 520px) {
  .cb-call-widget {
    right: 18px;
    left: auto;
    bottom: 18px;
    transform: none;
    width: 72px;
    height: 72px;
  }
  .cb-call-widget svg {
    width: 30px;
    height: 30px;
    margin-right: 0 !important;
  }

  .cb-bubble {
    right: 90px;
    left: auto;
    bottom: 100px;
    transform: scale(.9);
    text-align: left;
  }
  .cb-bubble[data-show="1"] {
    transform: scale(1);
  }
  .cb-bubble::after {
    right: -8px;
    left: auto;
    bottom: 14px;
    transform: none;
    border-left: 10px solid var(--cbg);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 0;
  }
}

/* Планшеты */
@media (min-width: 521px) and (max-width: 1024px) {
  .cb-call-widget {
    right: 22px;
    bottom: 22px;
    width: 84px;
    height: 84px;
  }
  .cb-call-widget svg {
    width: 36px;
    height: 36px;
    margin-right: 0 !important;
  }
  .cb-bubble {
    right: 120px;
    bottom: 110px;
  }
}


/*Телефоны */
@media (max-width: 520px) {
  .cb-close {
    top: 3px;
    right: 5px;
    font-size: 16px;
    background: transparent;   /* убрали фон */
    border: none;              /* убрали рамку */
    padding: 0;                /* без отступов */
    color: #000;               /* крестик чёрный */
  }
}

/* Планшеты */
@media (min-width: 521px) and (max-width: 1024px) {
  .cb-close {
    top: 12px;
    right: 14px;
    font-size: 18px;
    background: transparent;
    border: none;
    padding: 0;
    color: #000;
  }
}




/* Форма: теперь с промежутком между полем и кнопкой */
.cb-form{
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;                /* ← расстояние между input и кнопкой */
  align-items: stretch;
  border-radius: 0;         /* убрали «склейку» */
  overflow: visible;        /* ничего не обрезается */
}

/* Поле — со своей рамкой и скруглением */
.cb-input{
  height: 56px;
  padding: 14px 16px;
  font-size: 18px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;       /* скругление со всех сторон */
  outline: none;
}
.cb-input:focus{ border-color: var(--cbg); }

/* Кнопка — собственная, не растягиваем на всю ширину */
.cb-btn{
  height: 56px;
  padding: 10 22px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .2px;
  background: var(--cbg);
  color: #fff;
  border: none;
  border-radius: 10px;       /* своё скругление */
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  width: auto;               /* ← главное: больше не 100% */
  
   text-transform: uppercase;
}
.cb-btn:hover{ background: var(--cbg-hover); }

/* Мобайл: кнопка под полем, на всю ширину */
@media (max-width:520px){
  .cb-form{ grid-template-columns: 1fr; gap: 10px; }
  .cb-btn{ width: 100%; height: 50px; }
}



/* Телефоны */
@media (max-width: 520px) {
  .cb-close {
    top: 3px;
    right: 5px;
    font-size: 16px;
    background: transparent;   /* убрали фон */
    border: none;              /* убрали рамку */
    padding: 0;                /* без отступов */
    color: #000;               /* крестик чёрный */
  }

  .cb-btn {
    width: 100%;               /* кнопка занимает всю ширину */
    height: 48px;              /* компактная высота */
    font-size: 16px;           /* чуть меньше шрифт */
    font-weight: 700;
    text-transform: uppercase; /* ВСЕ БУКВЫ БОЛЬШИЕ */
    display: flex;
    align-items: center;
    justify-content: center;   /* текст строго по центру */
    border-radius: 8px;
  }
}

/* Планшеты */
@media (min-width: 521px) and (max-width: 1024px) {
  .cb-close {
    top: 12px;
    right: 14px;
    font-size: 18px;
    background: transparent;
    border: none;
    padding: 0;
    color: #000;
  }

  .cb-btn {
    width: auto;               /* кнопка по содержимому */
    padding: 0 24px;
    height: 52px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
}

