.nbdm {
  --nbdm-blue: #0c6fc2;
  --nbdm-blue-dark: #07528f;
  --nbdm-ink: #16324a;
  --nbdm-muted: #64788a;
  --nbdm-line: #d9e5ee;
  --nbdm-soft: #f3f8fc;
  --nbdm-white: #fff;
  color: var(--nbdm-ink);
  display: block;
  font-family: inherit;
  margin: 1.5rem 0 2.5rem;
  max-width: 100%;
  transform: none;
  width: 100%;
}

.nbdm * { box-sizing: border-box; }

.nbdm__hero {
  background: linear-gradient(135deg, #07528f 0%, #0c76c9 58%, #25a9df 100%);
  border-radius: 20px 20px 0 0;
  color: #fff;
  overflow: visible;
  padding: clamp(24px, 4vw, 46px);
  position: relative;
}

.nbdm__hero::after {
  background: radial-gradient(circle, rgba(255,255,255,.18) 0 2px, transparent 3px);
  background-size: 22px 22px;
  content: "";
  inset: 0 0 0 58%;
  opacity: .35;
  pointer-events: none;
  position: absolute;
}

.nbdm__hero > * { position: relative; z-index: 1; }
.nbdm__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; margin-bottom: 10px; text-transform: uppercase; }
.nbdm__hero h2 { color: #fff; font-size: clamp(27px, 4vw, 44px); line-height: 1.08; margin: 0; max-width: 850px; }
.nbdm__hero > p { font-size: 17px; line-height: 1.55; margin: 14px 0 23px; max-width: 820px; }

.nbdm__search { display: grid; gap: 9px; grid-template-columns: minmax(240px, 1fr) auto auto; max-width: 1000px; }
.nbdm__search input,
.nbdm__search button { border-radius: 11px; font: inherit; min-height: 50px; }
.nbdm__search input { background: #fff; border: 2px solid transparent; color: var(--nbdm-ink); font-size: 16px; padding: 0 16px; width: 100%; }
.nbdm__search input:focus { border-color: #ffd55c; box-shadow: 0 0 0 3px rgba(255,213,92,.28); outline: 0; }
.nbdm__search button { border: 0; cursor: pointer; font-weight: 800; padding: 0 18px; }
.nbdm__submit { background: #ffd55c; color: #20313f; }
.nbdm__submit:hover { background: #ffe187; }
.nbdm__locate { background: rgba(255,255,255,.15); color: #fff; outline: 1px solid rgba(255,255,255,.5); }
.nbdm__locate:hover { background: rgba(255,255,255,.25); }
.nbdm__locate:disabled { cursor: wait; opacity: .7; }

.nbdm__suggestions {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(13, 43, 67, .25);
  left: clamp(24px, 4vw, 46px);
  margin-top: 5px;
  max-height: 330px;
  max-width: 560px;
  overflow: auto;
  position: absolute !important;
  right: 44%;
  z-index: 1001 !important;
}
.nbdm__suggestions button { align-items: center; background: #fff; border: 0; border-bottom: 1px solid #e7eef4; color: var(--nbdm-ink); cursor: pointer; display: flex; font: inherit; gap: 15px; justify-content: space-between; padding: 11px 14px; text-align: left; width: 100%; }
.nbdm__suggestions button:hover { background: #f0f7fc; }
.nbdm__suggestions span { color: var(--nbdm-muted); font-size: 12px; text-align: right; }

.nbdm__quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.nbdm__quick button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.38); border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; padding: 7px 12px; }
.nbdm__quick button span { opacity: .72; padding-left: 4px; }
.nbdm__quick button:hover,
.nbdm__quick button.is-active { background: #fff; border-color: #fff; color: var(--nbdm-blue-dark); }

.nbdm__stats { background: #fff; border: 1px solid var(--nbdm-line); border-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.nbdm__stats > div { align-items: center; display: flex; flex-direction: column; padding: 15px 10px; text-align: center; }
.nbdm__stats > div + div { border-left: 1px solid var(--nbdm-line); }
.nbdm__stats strong { color: var(--nbdm-blue-dark); font-size: 20px; }
.nbdm__stats span { color: var(--nbdm-muted); font-size: 12px; margin-top: 2px; }

.nbdm__workspace { border: 1px solid var(--nbdm-line); border-top: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr); min-height: 610px; }
.nbdm__map { background: #dfeaf2; min-height: 610px; width: 100%; z-index: 1; }
.nbdm__panel { background: #fff; border-left: 1px solid var(--nbdm-line); max-height: 610px; overflow: auto; padding: 24px; }
.nbdm__panel-empty { align-items: flex-start; display: flex; flex-direction: column; height: 100%; justify-content: center; }
.nbdm__panel h3 { color: var(--nbdm-ink); font-size: 24px; line-height: 1.2; margin: 3px 0 10px; }
.nbdm__panel h4 { color: var(--nbdm-ink); font-size: 15px; margin: 22px 0 9px; }
.nbdm__panel p { color: var(--nbdm-muted); line-height: 1.55; margin: 0; }
.nbdm__result-head > span { color: var(--nbdm-blue); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.nbdm__result-grid { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.nbdm__result-grid > div { background: var(--nbdm-soft); border-radius: 10px; display: flex; flex-direction: column; min-height: 82px; padding: 12px; }
.nbdm__result-grid strong { color: var(--nbdm-blue-dark); font-size: 17px; line-height: 1.2; }
.nbdm__result-grid span { color: var(--nbdm-muted); font-size: 11px; line-height: 1.3; margin-top: 5px; }

.nbdm__nearby { list-style: none; margin: 0; padding: 0; }
.nbdm__nearby li { margin: 0; padding: 0; }
.nbdm__nearby button { align-items: center; background: transparent; border: 0; border-bottom: 1px solid #e7eef4; color: var(--nbdm-ink); cursor: pointer; display: flex; font: inherit; gap: 12px; justify-content: space-between; padding: 10px 0; text-align: left; width: 100%; }
.nbdm__nearby button:hover strong { color: var(--nbdm-blue); }
.nbdm__nearby button > span:last-child { text-align: right; white-space: nowrap; }
.nbdm__nearby small { color: var(--nbdm-muted); display: block; font-size: 10px; margin-top: 2px; }

.nbdm__quote { background: #f7fbfe; border: 1px solid var(--nbdm-line); border-radius: 14px; margin-top: 20px; padding: 16px; }
.nbdm__quote h4 { font-size: 18px; margin: 0 0 10px; }
.nbdm__quote-place { background: #fff; border-left: 3px solid var(--nbdm-blue); border-radius: 6px; font-size: 13px; padding: 9px 11px; }
.nbdm__quote-place strong { color: var(--nbdm-ink); }
.nbdm__quote-place span { font-size: 11px; }
.nbdm__diameter-title { color: var(--nbdm-ink); font-size: 12px; font-weight: 800; margin: 14px 0 7px; }
.nbdm__diameters { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; }
.nbdm__diameters label { background: #fff; border: 1px solid var(--nbdm-line); border-radius: 9px; cursor: pointer; display: flex; gap: 7px; margin: 0; padding: 9px; }
.nbdm__diameters label:has(input:checked) { background: #edf7ff; border-color: var(--nbdm-blue); box-shadow: 0 0 0 1px var(--nbdm-blue); }
.nbdm__diameters input { accent-color: var(--nbdm-blue); flex: 0 0 auto; margin: 2px 0 0; }
.nbdm__diameters span { display: flex; flex-direction: column; min-width: 0; }
.nbdm__diameters strong { color: var(--nbdm-ink); font-size: 13px; }
.nbdm__diameters small { color: var(--nbdm-muted); font-size: 10px; line-height: 1.35; margin-top: 2px; }
.nbdm__quote-total { background: #eaf6ff; border-radius: 10px; display: flex; flex-direction: column; margin-top: 10px; padding: 12px; }
.nbdm__quote-total strong { color: var(--nbdm-blue-dark); font-size: 17px; }
.nbdm__quote-total span { color: var(--nbdm-muted); font-size: 11px; margin-top: 3px; }
.nbdm__request-form { margin-top: 12px; }
.nbdm__contact-fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.nbdm__contact-fields label { color: var(--nbdm-ink); font-size: 11px; font-weight: 700; margin: 0; }
.nbdm__contact-fields input { background: #fff; border: 1px solid #bdcedb; border-radius: 8px; color: var(--nbdm-ink); display: block; font: inherit; font-size: 14px; margin-top: 4px; min-height: 42px; padding: 8px 10px; width: 100%; }
.nbdm__contact-fields input:focus { border-color: var(--nbdm-blue); box-shadow: 0 0 0 2px rgba(12,111,194,.14); outline: 0; }
.nbdm__consent { align-items: flex-start; color: var(--nbdm-muted); display: flex; font-size: 10px; gap: 6px; line-height: 1.4; margin: 10px 0; }
.nbdm__consent input { accent-color: var(--nbdm-blue); flex: 0 0 auto; margin: 2px 0 0; }
.nbdm__honeypot { height: 0 !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; position: absolute !important; width: 0 !important; }
.nbdm__request-submit { background: var(--nbdm-blue); border: 0; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; min-height: 45px; padding: 9px 12px; width: 100%; }
.nbdm__request-submit:hover { background: var(--nbdm-blue-dark); }
.nbdm__request-submit:disabled { cursor: default; opacity: .7; }
.nbdm__request-status { font-size: 11px; line-height: 1.45; margin-top: 8px !important; }
.nbdm__request-status:empty { display: none; }
.nbdm__request-status.is-success { color: #187346; }
.nbdm__request-status.is-error { color: #b3261e; }
.nbdm__price-link { color: var(--nbdm-blue-dark) !important; display: block; font-size: 11px; font-weight: 700; margin-top: 10px; text-align: center; }
.nbdm__panel-note { border-top: 1px solid var(--nbdm-line); font-size: 11px; margin-top: 14px !important; padding-top: 12px; }

.nbdm__legend { align-items: center; background: #fff; border: 1px solid var(--nbdm-line); border-top: 0; display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; padding: 10px 14px; }
.nbdm__legend span { align-items: center; color: var(--nbdm-muted); display: inline-flex; font-size: 12px; gap: 5px; }
.nbdm__legend i { border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #ccd9e2; display: inline-block; height: 11px; width: 11px; }
.nbdm__legend .d1 { background: #168aad; }
.nbdm__legend .d2 { background: #2a9d63; }
.nbdm__legend .d3 { background: #e0a100; }
.nbdm__legend .d4 { background: #ed7b2f; }
.nbdm__legend .d5 { background: #d63c48; }

.nbdm__notice { background: #fff9e7; border: 1px solid #f1dda1; border-radius: 0 0 14px 14px; color: #584a22; font-size: 13px; line-height: 1.55; margin: 0 !important; padding: 14px 18px; }
.nbdm__credits { color: #7a8d9e; font-size: 10px; margin: 7px 0 0 !important; text-align: right; }
.nbdm__loading { align-items: center; display: flex; flex-direction: column; height: 100%; justify-content: center; text-align: center; }
.nbdm__loading span { animation: nbdm-spin 1s linear infinite; border: 3px solid #d8e7f2; border-radius: 50%; border-top-color: var(--nbdm-blue); height: 34px; margin-bottom: 12px; width: 34px; }
.nbdm__fatal { align-items: center; display: flex; height: 100%; justify-content: center; margin: 0 !important; padding: 20px; text-align: center; }
@keyframes nbdm-spin { to { transform: rotate(360deg); } }

.nbdm .leaflet-popup-content { color: var(--nbdm-ink); font-size: 13px; line-height: 1.45; margin: 13px 16px; }
.nbdm .leaflet-popup-content strong { color: var(--nbdm-blue-dark); font-size: 15px; }
.nbdm .marker-cluster-small div,
.nbdm .marker-cluster-medium div,
.nbdm .marker-cluster-large div { background-color: rgba(12,111,194,.82); color: #fff; }
.nbdm .marker-cluster-small,
.nbdm .marker-cluster-medium,
.nbdm .marker-cluster-large { background-color: rgba(12,111,194,.25); }

.nbdm-prices,
.nbdm-promo {
  --nbdm-blue: #0c6fc2;
  --nbdm-blue-dark: #07528f;
  --nbdm-ink: #16324a;
  --nbdm-muted: #64788a;
  --nbdm-line: #d9e5ee;
  --nbdm-soft: #f3f8fc;
  box-sizing: border-box;
  color: var(--nbdm-ink);
  font-family: inherit;
}

.nbdm-prices *,
.nbdm-promo * { box-sizing: border-box; }

.nbdm-prices {
  background: #fff;
  border: 1px solid var(--nbdm-line);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(14, 55, 87, .08);
  margin: 18px 0 34px;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
}
.nbdm-prices__head { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; }
.nbdm-prices__head > div { max-width: 820px; }
.nbdm-prices__head > div > span { color: var(--nbdm-blue); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nbdm-prices__head h2 { color: var(--nbdm-ink); font-size: clamp(25px, 3vw, 38px); line-height: 1.12; margin: 7px 0 10px; }
.nbdm-prices__head p { color: var(--nbdm-muted); line-height: 1.55; margin: 0; }
.nbdm-prices__head > a { background: #ffd55c; border-radius: 10px; color: #24323d !important; flex: 0 0 auto; font-weight: 800; padding: 13px 17px; text-decoration: none !important; }
.nbdm-prices__head > a:hover { background: #ffe183; }
.nbdm-prices__grid { display: grid; gap: 11px; grid-template-columns: repeat(4, 1fr); margin-top: 25px; }
.nbdm-price-card { background: var(--nbdm-soft); border: 1px solid transparent; border-radius: 14px; margin: 0; min-width: 0; padding: 18px; position: relative; }
.nbdm-price-card.is-popular { background: #edf7ff; border-color: #9dcbed; }
.nbdm-price-card__badge { background: var(--nbdm-blue); border-radius: 999px; color: #fff; font-size: 9px; font-weight: 800; padding: 4px 7px; position: absolute; right: 10px; top: 10px; }
.nbdm-price-card__label { color: var(--nbdm-muted); display: block; font-size: 10px; padding-right: 68px; }
.nbdm-price-card h3 { color: var(--nbdm-ink); font-size: 24px; line-height: 1.1; margin: 7px 0 15px; }
.nbdm-price-card__rate { align-items: baseline; color: var(--nbdm-blue-dark); display: flex; gap: 5px; }
.nbdm-price-card__rate strong { font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.nbdm-price-card__rate span { font-size: 11px; font-weight: 700; }
.nbdm-price-card p { border-top: 1px solid #dce8f0; color: var(--nbdm-muted); font-size: 11px; margin: 15px 0 0; padding-top: 10px; }
.nbdm-price-card p strong { color: var(--nbdm-ink); }
.nbdm-prices__info { background: linear-gradient(135deg, #07528f, #0c76c9); border-radius: 14px; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin-top: 13px; overflow: hidden; }
.nbdm-prices__info > div { background: rgba(255,255,255,.07); color: #fff; padding: 15px; }
.nbdm-prices__info strong { display: block; font-size: 12px; margin-bottom: 4px; }
.nbdm-prices__info span { display: block; font-size: 11px; line-height: 1.45; opacity: .8; }
.nbdm-prices__footnote { color: var(--nbdm-muted); font-size: 11px; line-height: 1.5; margin: 13px 0 0; }

.nbdm-price-existing table { border: 1px solid var(--nbdm-line); border-collapse: separate; border-radius: 12px; border-spacing: 0; box-shadow: 0 8px 24px rgba(14,55,87,.06); display: block; margin: 16px 0 30px; max-width: 100%; overflow-x: auto; width: 100%; }
.nbdm-price-existing table tbody { display: table; min-width: 680px; width: 100%; }
.nbdm-price-existing table td,
.nbdm-price-existing table th { border-color: #e1eaf1; line-height: 1.5; padding: 12px 14px; }
.nbdm-price-existing table tr:nth-child(even) { background: #f7fafc; }

.nbdm-promo {
  align-items: center;
  background: linear-gradient(125deg, #eff8ff 0%, #fff 58%, #fff8df 100%);
  border: 1px solid #cde2f1;
  border-radius: 17px;
  box-shadow: 0 12px 34px rgba(14,55,87,.07);
  display: grid;
  gap: 18px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  margin: 28px 0;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 28px);
  position: relative;
}
.nbdm-promo::after { background: radial-gradient(circle, rgba(12,111,194,.12) 0 2px, transparent 3px); background-size: 18px 18px; content: ""; inset: 0 0 0 76%; opacity: .55; pointer-events: none; position: absolute; }
.nbdm-promo__drop { background: linear-gradient(145deg, #32b2e6, #0968b4); border-radius: 58% 42% 58% 42% / 68% 42% 58% 32%; box-shadow: 0 10px 22px rgba(12,111,194,.24); height: 62px; transform: rotate(45deg); width: 62px; }
.nbdm-promo__drop::after { background: rgba(255,255,255,.35); border-radius: 50%; content: ""; height: 14px; left: 12px; position: absolute; top: 10px; width: 14px; }
.nbdm-promo__content { position: relative; z-index: 1; }
.nbdm-promo__content > span { color: var(--nbdm-blue); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nbdm-promo__content h2 { color: var(--nbdm-ink); font-size: clamp(21px, 2.4vw, 30px); line-height: 1.15; margin: 5px 0 7px; }
.nbdm-promo__content p { color: var(--nbdm-muted); font-size: 13px; line-height: 1.5; margin: 0; max-width: 800px; }
.nbdm-promo__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nbdm-promo__facts span { background: #fff; border: 1px solid #d6e6f2; border-radius: 999px; color: var(--nbdm-blue-dark); font-size: 10px; font-weight: 700; padding: 4px 8px; }
.nbdm-promo__button { background: #ffd55c; border-radius: 10px; color: #24323d !important; font-size: 13px; font-weight: 800; padding: 13px 18px; position: relative; text-align: center; text-decoration: none !important; white-space: nowrap; z-index: 1; }
.nbdm-promo__button:hover { background: #ffe183; }

@media (max-width: 900px) {
  .nbdm__search { grid-template-columns: 1fr 1fr; }
  .nbdm__search input { grid-column: 1 / -1; }
  .nbdm__suggestions { left: 24px; max-width: none; right: 24px; }
  .nbdm__workspace { grid-template-columns: 1fr; }
  .nbdm__map { min-height: 480px; }
  .nbdm__panel { border-left: 0; border-top: 1px solid var(--nbdm-line); max-height: none; min-height: 340px; }
  .nbdm-prices__grid { grid-template-columns: 1fr 1fr; }
  .nbdm-prices__head { align-items: flex-start; flex-direction: column; }
  .nbdm-prices__info { grid-template-columns: 1fr; }
  .nbdm-promo { grid-template-columns: 58px 1fr; }
  .nbdm-promo__drop { height: 50px; width: 50px; }
  .nbdm-promo__button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nbdm { margin-left: 0; margin-right: 0; width: 100%; }
  .nbdm__hero { border-radius: 12px 12px 0 0; padding: 23px 17px; }
  .nbdm__hero h2 { font-size: 29px; }
  .nbdm__hero > p { font-size: 15px; }
  .nbdm__search { grid-template-columns: 1fr; }
  .nbdm__search input { grid-column: auto; }
  .nbdm__search button { min-height: 46px; }
  .nbdm__suggestions { left: 17px; right: 17px; }
  .nbdm__quick { flex-wrap: nowrap; margin-left: -17px; margin-right: -17px; overflow-x: auto; padding: 0 17px 4px; }
  .nbdm__quick button { flex: 0 0 auto; }
  .nbdm__stats { grid-template-columns: 1fr; }
  .nbdm__stats > div { align-items: baseline; flex-direction: row; gap: 8px; justify-content: center; padding: 9px; }
  .nbdm__stats > div + div { border-left: 0; border-top: 1px solid var(--nbdm-line); }
  .nbdm__stats strong { font-size: 16px; }
  .nbdm__map { min-height: 58vh; }
  .nbdm__panel { min-height: 380px; padding: 18px 15px; }
  .nbdm__contact-fields { grid-template-columns: 1fr; }
  .nbdm__legend { gap: 8px 13px; justify-content: flex-start; }
  .nbdm-prices { border-radius: 14px; padding: 17px 13px; }
  .nbdm-prices__grid { grid-template-columns: 1fr; }
  .nbdm-price-card { padding: 16px; }
  .nbdm-promo { grid-template-columns: 1fr; padding: 18px; text-align: left; }
  .nbdm-promo__drop { display: none; }
  .nbdm-promo__button { grid-column: auto; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .nbdm *, .nbdm *::before, .nbdm *::after { scroll-behavior: auto !important; transition: none !important; }
}
