/* Custom styles for creditfabrika.ru — added 2026-06-28 */

/* Кнопка Кабинет в хедере */
.h_cabinet_btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a3c5e;
  color: #fff !important;
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: .01em;
  border: 2px solid transparent;
  transition: all .2s;
  margin-left: 15px;
}
.h_cabinet_btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff !important;
}
.h_cabinet_btn svg {
  flex-shrink: 0;
}

/* Аватары в отзывах */
.feedback_avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}
.feedback_name_box {
  display: flex;
  align-items: center;
}

/* Блок рефинансирования на главной */
.refinance-cta {
  background: linear-gradient(135deg, #1a3c5e 0%, #2563eb 100%);
  border-radius: 16px;
  padding: 40px;
  color: #fff;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.refinance-cta h2 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.refinance-cta p {
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
}
.refinance-cta .refinance-badge {
  background: #ffcc02;
  color: #1a3c5e;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: .85rem;
  display: inline-block;
  margin-bottom: 12px;
}
.refinance-cta .refinance-btn {
  background: #ffcc02;
  color: #1a3c5e !important;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.05rem;
  transition: all .2s;
}
.refinance-cta .refinance-btn:hover {
  background: #fff;
  transform: scale(1.05);
}

/* Блок Как добраться */
.directions-block {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
}
.directions-block h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.directions-steps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.directions-step {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  border-left: 4px solid #2563eb;
}
.directions-step .step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #2563eb;
}
.directions-step .step-text {
  margin-top: 8px;
  font-size: .95rem;
  color: #333;
}

/* Поп-ап спецпредложение для юрлиц */
.ref-popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.ref-popup-overlay.active {
  display: flex;
}
.ref-popup {
  background: #fff;
  border-radius: 16px;
  padding: 35px;
  max-width: 500px;
  width: 90%;
  position: relative;
}
.ref-popup h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #1a3c5e;
}
.ref-popup p {
  color: #555;
  margin-bottom: 20px;
}
.ref-popup .ref-popup-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  background: none;
  border: none;
}
.ref-popup .ref-popup-btn {
  background: #2563eb;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}
