/* ====== Кнопка и попап "Подобрать" ====== */

.offer-wrapper {
  position: relative;
  display: inline-block;
}

/*.offer-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  background: #ff6b35; 
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
}*/


.offer-btn {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  background: #ff6b35;
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
  margin: 0 0 20px 0;
}


.offer-btn:hover {
  background: #e8562a;
}

.offer-btn:active {
  transform: scale(0.97);
}

/* Само окошко: позиционируется относительно кнопки */
.offer-popup {
  position: absolute;
  top: calc(100% + 12px);
  left: 75px;
  width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1000;
  animation: offer-popup-fade 0.18s ease;

}

/* Если кнопка справа в хедере — попап может вылезать за экран,
   тогда лучше прижать окно к правому краю кнопки: */
.offer-wrapper--right .offer-popup {
  left: auto;
  right: 0;
}

@keyframes offer-popup-fade {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offer-popup[hidden] {
  display: none;
}

.offer-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}

.offer-popup__close:hover {
  color: #333;
}

.offer-popup__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}

.offer-popup__image[src=""] {
  display: none;
}

.offer-popup__text {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 14px;
}

.offer-popup__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.offer-popup__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 14px;
}

.offer-popup__input:focus {
  outline: none;
  border-color: #ff6b35;
}

.offer-popup__cta {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  background: #333;
  transition: background 0.2s ease;
}

.offer-popup__cta:hover {
  background: #111;
}

.offer-popup__cta[hidden] {
  display: none;
}

/* Отдельный акцент для "специального" предложения (сумма 18999) */
.offer-popup__cta--special {
  background: linear-gradient(90deg, #ff6b35, #ff8c5a);
  margin-top: 8px;
}

.offer-popup__cta--special:hover {
  background: linear-gradient(90deg, #e8562a, #ff6b35);
}

@media (max-width: 480px) {
  .offer-popup {
    width: calc(100vw - 32px);
    left: 0;
    right: auto;
    top: 0
    
  }


}

}
