.marquiz-inline-wrapper {
  position: relative;
  scroll-margin-top: 100px;
}

.marquiz-inline-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: #1a2a42;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: background 0.15s;
}

.marquiz-inline-close:hover {
  background: #ffffff;
}

/* keep the license bar back at its original single-line height — the page's
   own .license-text { flex: 1 } rule loads after this stylesheet and would
   otherwise win the tie and let the text wrap once the row has less spare
   width (e.g. with our added quiz-trigger button in the same row). */
.license-bar .license-text {
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

/* Normalize the license bar's inner row layout so it looks IDENTICAL on every
   page — pages differed in padding (24px vs 48px on contact) and width
   constraint (1180px vs unconstrained on dementia/perelom-shejki-bedra),
   which made the same row visibly misaligned page to page. */
.license-bar .container,
.license-bar .wrap {
  max-width: 1180px !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  gap: 24px !important;
  box-sizing: border-box !important;
}

/* Self-contained styling for the header/license-bar quiz trigger button — does
   NOT depend on each page's own .btn/.btn-orange classes (some pages, e.g.
   pricing, never define those at all, which left the button unstyled there).
   This guarantees the exact same look on every page regardless of local CSS. */
.marquiz-header-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  margin-left: auto;
  background: #9E6900;
  color: #ffffff !important;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 8px;
  border: none;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s;
}

.marquiz-header-trigger:hover {
  background: #C06A3E;
  color: #ffffff !important;
}

/* Same self-contained treatment for the OTHER top-info header button (the one
   right of the phone number, e.g. "Узнать о размещении") — different pages
   used different local classes (btn-top-orange / btn-orange-sm / btn-sm-blue
   / inline styles) with visibly different sizes/colors. This does not change
   each page's own href or text — only visual consistency. */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  background: #9E6900;
  color: #ffffff !important;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 8px;
  border: none;
  white-space: nowrap;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s;
}

.header-cta-btn:hover {
  background: #C06A3E;
  color: #ffffff !important;
}
