/* Поп-ап «Связаться» — совместим с catalog-ui (.is-open) и страницами без catalog.css */

.header-callback-modal.modal {
  position: fixed;
  inset: 0;
  /* Выше Bootstrap backdrop (1050) и .modal (1055) на главной/карточке */
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.header-callback-modal.modal.is-open,
.header-callback-modal.modal.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.header-callback-modal .modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  color: #1f2022;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.header-callback-modal .modal__title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  text-align: center;
}

.header-callback-lead {
  margin: 0 0 16px;
  text-align: center;
  color: #737373;
  font-size: 14px;
  line-height: 18px;
}

.header-callback-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-callback-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header-callback-form .field__label {
  font-size: 12px;
  color: #737373;
}

.header-callback-form .offer-form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 14px;
}

.header-callback-form .offer-form-input.error-input {
  border-color: #c0392b;
  background: #fff5f5;
}

.header-callback-form .btn-submit {
  margin-top: 4px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #1f2022;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.header-callback-consent {
  margin: 0;
  color: #737373;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.header-callback-consent a {
  color: #1f2022;
  font-weight: 600;
  text-decoration: underline;
}

.header-callback-error {
  margin: 0;
  color: #c0392b;
  font-size: 13px;
}

.header-callback-modal .modal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.header-callback-modal .modal__close .icon-mask {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  background: #737373;
  -webkit-mask-image: url("/img/close-icon.svg");
  mask-image: url("/img/close-icon.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Honeypot: скрыто от людей, доступно ботам */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.catalog-ssr {
  padding: 16px var(--page-pad, 16px) 8px;
}

.catalog-ssr__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.catalog-ssr__list a {
  color: #ccc;
  font-size: 13px;
}

.product-card-title-link {
  color: inherit;
  text-decoration: none;
}

.product-card-title-link:hover {
  text-decoration: underline;
}
