/* MIR Logistic — каталог товаров в наличии */

.jd3-catalog-page {
  min-height: 100vh;
  overflow-x: clip;
  background: linear-gradient(180deg, #12100c 0%, var(--_color-grey---100, #14120e) 220px, var(--_color-grey---100, #14120e) 100%);
}

/* Webflow переопределяем только на странице каталога */
.jd3-catalog-page .jd3-input,
.jd3-catalog-page select.jd3-input,
.jd3-catalog-page .w-input {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 2.75rem;
  margin-bottom: 0 !important;
  padding: 0.65rem 0.85rem !important;
  box-sizing: border-box;
  line-height: 1.35;
  font-size: 16px;
}

.jd3-catalog-page select.jd3-input {
  padding-right: 2.25rem !important;
}

.jd3-catalog-page .jd3-button {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem !important;
  box-sizing: border-box;
  font-size: 0.92rem;
  line-height: 1.25;
}

.jd3-catalog-page .jd3-catalog-qty-input {
  flex: 1 1 4rem;
  min-width: 3.5rem;
  max-width: 5.5rem;
}

.jd3-catalog-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jd3-catalog-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.jd3-catalog-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.jd3-catalog-brand .jd3-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.jd3-catalog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s, transform 0.15s;
}

.jd3-catalog-back:hover {
  background: rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
}

.jd3-catalog-back svg {
  width: 1rem;
  height: 1rem;
}

.jd3-catalog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  width: 100%;
  box-sizing: border-box;
}

/* Блок контактов — как на главной */
.jd3-catalog-contacts-top {
  margin: 0 0 2rem;
  padding: 0;
}

.jd3-ex-contacts.jd3-catalog-contacts-top {
  margin-top: 0;
}

.jd3-ex-contacts {
  margin-top: 2.5rem;
  padding: 0;
}

.jd3-ex-contacts-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  border-radius: 1.15rem;
  background: #16140f;
  border: 1px solid var(--_color-grey---300, #cbd5e1);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.jd3-ex-contacts-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  text-align: center;
}

.jd3-ex-contacts-head h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--_color-grey---800, #1e293b);
}

.jd3-ex-contacts-head p {
  margin: 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--_color-grey---600, #475569);
}

.jd3-ex-contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.85rem;
}

.jd3-ex-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--_color-grey---800, #1e293b);
  background: var(--_color-grey---100, #f1f5f9);
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.jd3-ex-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.18);
  border-color: var(--_color-accent---400, #d4af37);
  background: rgba(59, 130, 246, 0.06);
}

.jd3-ex-contact-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.jd3-ex-contact-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jd3-ex-contact-tg {
  color: #d4af37;
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.1);
}

.jd3-ex-contact-max {
  color: #e8d48b;
  border-color: rgba(232, 212, 139, 0.25);
  background: rgba(232, 212, 139, 0.08);
}

.jd3-ex-contact-reviews {
  color: #c9a227;
  border-color: rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.1);
}

.jd3-ex-contact-chat {
  color: #e8d48b;
  border-color: rgba(232, 212, 139, 0.28);
  background: rgba(232, 212, 139, 0.08);
}

.jd3-ex-contact-site {
  color: var(--_color-accent---500, #c9a227);
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(212, 175, 55, 0.1);
}

.jd3-order-type-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: var(--_color-grey---100, #f1f5f9);
  border-radius: 0.75rem;
}

.jd3-order-type-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  border-radius: 0.55rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--_color-grey---700, #334155);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.jd3-order-type-tab.is-active {
  background: var(--_color-accent---400, #d4af37);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.jd3-catalog-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.jd3-catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--_color-accent---500, #c9a227);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jd3-catalog-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--_color-grey---800, #1e293b);
}

.jd3-catalog-hero p {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--_color-grey---600, #475569);
}

.jd3-catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.jd3-catalog-hero-chat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.1);
  border: 1.5px solid rgba(2, 132, 199, 0.28);
  color: #0284c7;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.jd3-catalog-hero-chat:hover {
  background: rgba(2, 132, 199, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.18);
  color: #0284c7;
}

.jd3-catalog-hero-chat svg {
  flex-shrink: 0;
}

.jd3-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.jd3-catalog-search {
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
}

.jd3-catalog-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  border-radius: 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  background: #16140f;
  color: var(--_color-grey---800, #1e293b);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.jd3-catalog-search input:focus {
  border-color: var(--_color-accent---400, #d4af37);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.jd3-catalog-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--_color-grey---500, #64748b);
  pointer-events: none;
}

.jd3-catalog-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--_color-grey---600, #475569);
  white-space: nowrap;
}

.jd3-catalog-price-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.95rem;
  background: #16140f;
  border: 1px solid var(--_color-grey---200, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.jd3-catalog-price-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.jd3-catalog-price-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--_color-grey---500, #64748b);
}

.jd3-catalog-select {
  min-width: 180px;
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--_color-grey---800, #1e293b);
  background: #16140f;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.jd3-catalog-select:focus {
  border-color: var(--_color-accent---400, #d4af37);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.jd3-catalog-price-range {
  flex: 1 1 220px;
}

.jd3-catalog-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.jd3-catalog-price-input {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  border-radius: 0.75rem;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--_color-grey---800, #1e293b);
  background: #16140f;
  outline: none;
}

.jd3-catalog-price-input:focus {
  border-color: var(--_color-accent---400, #d4af37);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.jd3-catalog-price-dash {
  color: var(--_color-grey---400, #94a3b8);
  font-weight: 700;
}

.jd3-catalog-price-reset {
  flex-shrink: 0;
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  border-radius: 0.75rem;
  padding: 0.65rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--_color-grey---700, #334155);
  background: var(--_color-grey---100, #f1f5f9);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.jd3-catalog-price-reset:hover {
  border-color: var(--_color-accent---400, #d4af37);
  background: rgba(59, 130, 246, 0.06);
}

.jd3-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.jd3-catalog-filter {
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  background: #16140f;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--_color-grey---700, #334155);
  cursor: pointer;
  transition: all 0.15s;
}

.jd3-catalog-filter:hover {
  border-color: var(--_color-accent---400, #d4af37);
  color: var(--_color-accent---500, #c9a227);
}

.jd3-catalog-filter.is-active {
  background: var(--_color-accent---400, #d4af37);
  border-color: var(--_color-accent---400, #d4af37);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.jd3-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.jd3-catalog-card {
  display: flex;
  flex-direction: column;
  background: #16140f;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--_color-grey---200, #e2e8f0);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.jd3-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}

.jd3-catalog-card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--_color-grey---100, #f1f5f9);
  overflow: hidden;
}

.jd3-catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.jd3-catalog-card:hover .jd3-catalog-card-media img {
  transform: scale(1.04);
}

.jd3-catalog-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.jd3-catalog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
  padding: 1rem 1.05rem 1.15rem;
}

.jd3-catalog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--_color-grey---500, #64748b);
}

.jd3-catalog-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--_color-grey---800, #1e293b);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.jd3-catalog-card-prices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}

.jd3-catalog-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  background: var(--_color-grey---100, #f1f5f9);
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 0;
}

.jd3-catalog-price-row span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.jd3-catalog-price-row span:last-child {
  flex-shrink: 0;
  text-align: right;
  white-space: nowrap;
}

.jd3-catalog-price-row.is-accent {
  background: rgba(59, 130, 246, 0.1);
}

.jd3-catalog-price-row.is-accent span:last-child {
  color: var(--_color-accent---500, #c9a227);
  font-weight: 800;
  font-size: 0.95rem;
}

.jd3-catalog-price-row.is-muted span:last-child {
  text-decoration: line-through;
  opacity: 0.65;
}

.jd3-catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #16140f;
  border-radius: 1rem;
  border: 1px dashed var(--_color-grey---300, #cbd5e1);
  color: var(--_color-grey---600, #475569);
}

/* Модалки */
.jd3-catalog-modal[hidden] {
  display: none !important;
}

.jd3-catalog-modal:not([hidden]) {
  display: flex;
}

.jd3-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.jd3-catalog-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.jd3-catalog-modal-panel {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: min(92vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #16140f;
  border-radius: 1.25rem;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.25);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}

.jd3-catalog-modal.is-open .jd3-catalog-modal-panel {
  transform: translateY(0) scale(1);
}

.jd3-catalog-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--_color-grey---700, #334155);
}

.jd3-catalog-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.jd3-catalog-modal-image {
  position: relative;
  background: var(--_color-grey---100, #f1f5f9);
  min-height: 320px;
}

.jd3-catalog-modal-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.jd3-catalog-modal-content {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jd3-catalog-modal-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--_color-accent---400, #d4af37);
}

.jd3-catalog-modal-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--_color-grey---800, #1e293b);
}

.jd3-catalog-modal-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--_color-grey---600, #475569);
}

.jd3-catalog-modal-prices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jd3-catalog-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.jd3-catalog-meta-pill {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--_color-grey---100, #f1f5f9);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--_color-grey---700, #334155);
}

.jd3-catalog-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.jd3-catalog-modal-actions .jd3-button {
  text-align: center;
  text-decoration: none;
  margin: 0;
}

.jd3-catalog-modal-actions .jd3-border {
  background: #16140f;
  color: var(--_color-accent---400, #d4af37);
  border: 1px solid var(--_color-accent---400, #d4af37);
}

.jd3-catalog-modal-actions button.jd3-button {
  border: none;
  cursor: pointer;
  width: 100%;
}

/* Форма заявки */
.jd3-catalog-lead-modal {
  z-index: 210;
}

.jd3-catalog-lead-panel {
  max-width: 480px;
}

.jd3-catalog-lead-inner {
  padding: 1.75rem 1.5rem 1.5rem;
}

.jd3-catalog-lead-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--_color-grey---800, #1e293b);
}

.jd3-catalog-lead-product {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--_color-accent---500, #c9a227);
}

.jd3-catalog-lead-field {
  margin-bottom: 1rem;
}

.jd3-catalog-lead-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--_color-grey---700, #334155);
}

.jd3-catalog-lead-field .jd3-input,
.jd3-catalog-lead-field select {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
}

.jd3-catalog-lead-error {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.jd3-catalog-lead-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.jd3-catalog-lead-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.jd3-catalog-qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jd3-catalog-qty-btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--_color-grey---300, #cbd5e1);
  border-radius: 0.65rem;
  background: var(--_color-grey---100, #f1f5f9);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--_color-grey---800, #1e293b);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.jd3-catalog-qty-btn:hover {
  border-color: var(--_color-accent---400, #d4af37);
  background: rgba(59, 130, 246, 0.08);
}

.jd3-catalog-qty-input {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

body.jd3-catalog-modal-open {
  overflow: hidden;
}

/* Промо на главной */
.jd3-catalog-promo {
  margin: 0;
  padding: 0;
}

.jd3-catalog-promo-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 2.5rem;
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #0a0907 0%, #6b5420 45%, #d4af37 100%);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
  overflow: hidden;
  position: relative;
}

.jd3-catalog-promo-inner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.jd3-catalog-promo-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jd3-catalog-promo h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.jd3-catalog-promo p {
  margin: 0 0 1.25rem;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.jd3-catalog-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.jd3-catalog-promo-actions .jd3-button {
  text-decoration: none;
}

.jd3-catalog-promo-actions .jd3-promo-white {
  background: #16140f;
  color: var(--_color-accent---500, #c9a227);
}

.jd3-catalog-promo-actions .jd3-promo-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.jd3-catalog-promo-visual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.jd3-catalog-promo-thumb {
  aspect-ratio: 1;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.jd3-catalog-promo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jd3-catalog-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.jd3-catalog-hero-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.jd3-catalog-inline-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--_color-grey---300, #cbd5e1);
}

.jd3-catalog-inline-cta p {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--_color-grey---600, #475569);
}

@media (max-width: 991px) {
  .jd3-ex-contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jd3-ex-contacts-card {
    padding: 1.35rem 1rem;
    border-radius: 1rem;
  }

  .jd3-ex-contacts-head h3 {
    font-size: 1.2rem;
  }

  .jd3-ex-contacts-head p {
    font-size: 0.88rem;
  }

  .jd3-ex-contact-btn {
    min-height: 3rem;
    font-size: 0.84rem;
    padding: 0.75rem 0.65rem;
  }

  .jd3-catalog-promo-inner {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
  }

  .jd3-catalog-promo-visual {
    display: none;
  }

  .jd3-catalog-modal-inner {
    grid-template-columns: 1fr;
  }

  .jd3-catalog-modal-image,
  .jd3-catalog-modal-image img {
    min-height: 220px;
    max-height: 42vh;
  }

  .jd3-catalog-modal:not([hidden]) {
    align-items: flex-end;
    padding: 0;
  }

  .jd3-catalog-modal-panel {
    max-height: 94vh;
    border-radius: 1.25rem 1.25rem 0 0;
    max-width: 100%;
  }

  .jd3-catalog-lead-modal:not([hidden]) {
    align-items: flex-end;
    padding: 0;
  }

  .jd3-catalog-lead-panel {
    max-width: 100%;
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .jd3-catalog-modal-content {
    padding: 1.25rem 1.15rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .jd3-catalog-wrap {
    padding: 1rem 0.85rem 2rem;
  }

  .jd3-catalog-topbar-inner {
    padding: 0.75rem 0.85rem;
  }

  .jd3-catalog-back-text {
    display: none;
  }

  .jd3-catalog-back {
    padding: 0.55rem 0.75rem;
  }

  .jd3-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .jd3-catalog-card-body {
    padding: 0.75rem 0.8rem 0.9rem;
  }

  .jd3-catalog-card-title {
    font-size: 0.88rem;
  }

  .jd3-catalog-price-row {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem;
  }

  .jd3-catalog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-bottom: 1.25rem;
  }

  .jd3-catalog-filter {
    flex-shrink: 0;
  }

  .jd3-catalog-modal-actions {
    grid-template-columns: 1fr;
    position: sticky;
    bottom: 0;
    background: #16140f;
    padding: 0.75rem 0 0;
    margin-top: 0.5rem;
  }

  .jd3-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .jd3-catalog-price-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .jd3-catalog-price-field {
    width: 100%;
  }

  .jd3-catalog-select {
    width: 100%;
    min-width: 0;
  }

  .jd3-catalog-price-reset {
    width: 100%;
  }

  .jd3-catalog-count {
    text-align: center;
  }

  .jd3-order-type-switcher {
    flex-direction: row;
  }

  .jd3-catalog-hero {
    margin-bottom: 1.25rem;
  }

  .jd3-catalog-hero h1 {
    font-size: 1.45rem;
  }

  .jd3-catalog-hero p {
    font-size: 0.9rem;
  }

  .jd3-catalog-contacts-top {
    margin-bottom: 1.25rem;
  }

  .jd3-catalog-lead-inner {
    padding: 1.25rem 1rem 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .jd3-catalog-lead-field {
    margin-bottom: 0.85rem;
  }

  .jd3-catalog-lead-title {
    font-size: 1.15rem;
    padding-right: 2.5rem;
  }

  .jd3-catalog-lead-product {
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }

  .jd3-order-type-tab {
    font-size: 0.8rem;
    padding: 0.55rem 0.35rem;
  }

  .jd3-catalog-qty-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 479px) {
  .jd3-catalog-wrap {
    padding: 0.75rem 0.65rem 1.75rem;
  }

  .jd3-catalog-topbar-inner {
    padding: 0.65rem 0.65rem;
  }

  .jd3-catalog-brand .jd3-logo {
    height: 40px;
    max-width: 110px;
  }

  .jd3-ex-contacts-card {
    padding: 1rem 0.75rem;
  }

  .jd3-ex-contacts-head {
    margin-bottom: 1rem;
    gap: 0.45rem;
  }

  .jd3-ex-contacts-head h3 {
    font-size: 1.05rem;
  }

  .jd3-ex-contacts-head p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .jd3-ex-contacts-grid {
    gap: 0.55rem;
  }

  .jd3-ex-contact-btn {
    min-height: 2.75rem;
    padding: 0.6rem 0.45rem;
    font-size: 0.78rem;
    gap: 0.35rem;
    border-radius: 0.7rem;
  }

  .jd3-ex-contact-btn svg {
    width: 1rem;
    height: 1rem;
  }

  .jd3-catalog-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
  }

  .jd3-catalog-search input {
    padding: 0.7rem 0.85rem 0.7rem 2.5rem;
    font-size: 16px;
  }

  .jd3-catalog-price-bar {
    gap: 0.65rem;
    padding: 0.75rem;
  }

  .jd3-catalog-price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
  }

  .jd3-catalog-price-input {
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.55rem;
    font-size: 16px;
  }

  .jd3-catalog-price-dash {
    font-size: 0.85rem;
  }

  .jd3-catalog-price-reset {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
  }

  .jd3-catalog-select {
    font-size: 16px;
    padding: 0.6rem 2rem 0.6rem 0.75rem;
  }

  .jd3-catalog-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .jd3-catalog-card-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .jd3-catalog-card-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
  }

  .jd3-catalog-price-row {
    font-size: 0.78rem;
    padding: 0.4rem 0.55rem;
  }

  .jd3-catalog-price-row.is-accent span:last-child {
    font-size: 0.88rem;
  }

  .jd3-catalog-filter {
    font-size: 0.78rem;
    padding: 0.45rem 0.8rem;
  }

  .jd3-catalog-modal-panel {
    max-height: min(96vh, 100dvh);
    border-radius: 1rem 1rem 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .jd3-catalog-modal-image,
  .jd3-catalog-modal-image img {
    min-height: 180px;
    max-height: 36vh;
  }

  .jd3-catalog-modal-content {
    padding: 1rem 0.85rem 1.25rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .jd3-catalog-modal-title {
    font-size: 1.15rem;
    padding-right: 2rem;
  }

  .jd3-catalog-modal-desc {
    font-size: 0.88rem;
  }

  .jd3-catalog-modal-close {
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.35rem;
  }

  .jd3-catalog-modal-actions {
    gap: 0.5rem;
    padding-top: 0.65rem;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .jd3-catalog-page .jd3-input,
  .jd3-catalog-page select.jd3-input {
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem !important;
  }

  .jd3-catalog-page .jd3-button {
    min-height: 2.5rem;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.88rem;
  }
}
