/* Kolesnikova site polish — calm trust visual */
:root {
  --heading-gradient: #1e3a5f;
  --fh: "Source Serif 4", "PT Serif", Georgia, "Times New Roman", ui-serif, serif;
  --fb: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 14px;
  --sh-sm: 0 8px 24px rgba(30, 58, 95, 0.06);
}

/* Empty badges must not show a blank pill */
.badge:empty,
.ub-eyebrow:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  border: 0 !important;
}

/* Features cards — clearer “approach” block */
[class*="bm-feat-"] .bm-c,
[class*="bm-feat-"] .bm-card {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.05);
  padding: 22px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
[class*="bm-feat-"] .bm-c:hover,
[class*="bm-feat-"] .bm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(30, 58, 95, 0.1);
}
[class*="bm-feat-"] .bm-it,
[class*="bm-feat-"] i {
  color: #3d6b99 !important;
}
[class*="bm-feat-"] h2,
[class*="bm-feat-"] .bm-t {
  color: #1e3a5f;
}

/* Services calm cards */
[class*="bm-srv-"] .bm-c {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4ebf3;
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.05);
}

/* Content CTAs with photo — calm editorial, not sales banner */
[class*="bm-cta-with-image"] img,
[class*="bm-cta-wi"] img {
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.12);
  object-fit: cover;
  width: 100%;
}
[class*="bm-cta-with-image"] h2,
[class*="bm-cta-wi"] h2,
[class*="bm-cta-with-image"] .bm-t {
  color: #1e3a5f;
}
[class*="bm-cta-with-image"] p,
[class*="bm-cta-wi"] p,
[class*="bm-cta-with-image"] .bm-d {
  color: #5a6b7d;
  white-space: pre-line;
  line-height: 1.65;
}
[class*="bm-cta-with-image"] .btn,
[class*="bm-cta-wi"] .btn {
  border-radius: 999px;
}

/* Stats soften */
[class*="bm-stat"] .bm-c {
  border-radius: 14px;
  border: 1px solid #e4ebf3;
  background: #fff;
}

.ub-hero .badge:empty,
[class*="bm-hero"] .badge:empty {
  display: none !important;
}

/* CTA banner: only inner plate is colored */
[class*="bm-cta-banner"] {
  background: transparent !important;
}
[class*="bm-cta-banner"] .bm-in {
  background: linear-gradient(135deg, #1e3a5f, #2a4a73);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.18);
}

/* Standard text: keep headings with their paragraphs */
[class*="bm-txt-standard"] h2,
[class*="bm-txt-standard"] h3 {
  color: #1e3a5f;
  margin: 28px 0 12px;
}
[class*="bm-txt-standard"] h2:first-child,
[class*="bm-txt-standard"] h3:first-child {
  margin-top: 0;
}

/* CTA centered on dark bg — white button, blue text (not blue-on-blue) */
[class*="bm-cta-centered"] .btn.btn-p {
  background: #ffffff !important;
  color: #1e3a5f !important;
  border-color: #ffffff !important;
}
[class*="bm-cta-centered"] .btn.btn-p:hover {
  background: #f0f3f7 !important;
  color: #1e3a5f !important;
  border-color: #f0f3f7 !important;
}

/* Header: no logo — menu from the left, CTA on the right */
.ub-header a.flex-shrink-0:has(span.ub-header-logo),
.ub-header > .container > .flex > .flex.items-center:first-child {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ub-header > .container > .flex.items-center.justify-between {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  gap: 1.5rem;
}
.ub-header-nav {
  position: static !important;
  transform: none !important;
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}
.ub-header > .container > .flex > .flex.items-center:last-child {
  flex-shrink: 0;
  margin-left: 0;
}
.ub-topbar {
  background: #f4f7fb !important;
  border-color: #e4ebf3 !important;
}
.ub-topbar a,
.ub-topbar .ub-header-phone {
  color: #1e3a5f !important;
  font-weight: 500;
}
.ub-topbar a:hover {
  color: #3d6b99 !important;
}
.ub-topbar-address {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1e3a5f !important;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none !important;
  line-height: 1.35;
}
.ub-topbar-address:hover {
  color: #3d6b99 !important;
}
.ub-topbar-address svg {
  flex-shrink: 0;
  color: #3d6b99;
}
.ub-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e4ebf3 !important;
  box-shadow: 0 4px 18px rgba(30, 58, 95, 0.06) !important;
}
.ub-header .ub-menu-link {
  color: #334155 !important;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ub-header .ub-menu-link:hover {
  color: #1e3a5f !important;
}
.ub-header > .container .ub-header-phones {
  display: none !important;
}
.ub-header .ub-header-cta {
  border-radius: 999px !important;
  background: #1e3a5f !important;
  font-weight: 600 !important;
  padding: 10px 22px !important;
}
.ub-header .ub-header-cta:hover {
  background: #2a4a73 !important;
}

/* Footer partner logos — image only, no captions */
.ub-footer-dev > span {
  display: none !important;
}

/* Footer chrome — navy, map, contacts */
.ub-footer {
  background: #1a334f !important;
  color: #ffffff !important;
  border-top: 3px solid #3d6b99 !important;
  padding-top: 40px !important;
  padding-bottom: 24px !important;
}
.ub-footer .ub-footer-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}
.ub-footer .ub-footer-link {
  color: #e8eef5 !important;
}
.ub-footer .ub-footer-link:hover {
  color: #ffffff !important;
}
.ub-footer-contacts .ub-footer-heading {
  color: #ffffff !important;
  font-family: var(--fh);
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  padding-top: 0 !important;
  line-height: 1.3;
}
.ub-footer > .container > div[style*="display:grid"] > div:first-child > p.ub-footer-muted {
  display: none !important;
}
.ub-footer > .container > div[style*="display:grid"] {
  display: grid !important;
  grid-template-columns: minmax(150px, 0.85fr) minmax(200px, 0.95fr) minmax(300px, 1.45fr) !important;
  gap: 1.75rem 2.25rem !important;
  align-items: stretch !important;
  margin-bottom: 2rem !important;
}
.ub-footer > .container > div[style*="display:grid"] > div:first-child {
  order: 3;
}
.ub-footer > .container > div[style*="display:grid"] > div:nth-child(2) {
  order: 1;
}
.ub-footer > .container > div[style*="display:grid"] > div:nth-child(3) {
  order: 2;
}
.ub-footer > .container > div[style*="display:grid"] > div:first-child .flex.gap-3 {
  display: none !important;
}
.ub-footer-menu a {
  color: rgba(255, 255, 255, 0.86) !important;
}
.ub-footer-menu a:hover {
  color: #ffffff !important;
}
.ub-footer > .container > div[style*="display:grid"] > div:nth-child(2)::before {
  content: "Навигация";
  display: block;
  color: #ffffff;
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.ub-footer-border {
  border-color: rgba(255, 255, 255, 0.14) !important;
  margin-top: 8px !important;
}
.footer-map {
  height: 100% !important;
  min-height: 260px !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  margin-top: 0 !important;
}
.footer-map iframe {
  height: 100% !important;
  min-height: 260px !important;
  display: block;
}
.ub-fc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px !important;
}
.ub-fc-row:last-child {
  margin-bottom: 0 !important;
}
.ub-fc-ico {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(61, 107, 153, 0.2);
  color: #8ec0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ub-fc-txt {
  flex: 1;
  padding-top: 5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9375rem;
}
.ub-fc-txt a {
  color: #e8eef5 !important;
  text-decoration: none;
  font-weight: 500;
}
.ub-fc-txt a:hover {
  color: #ffffff !important;
}
.ub-footer-contacts .mb-2 a {
  font-weight: 500;
}
.ub-footer-dev-block {
  margin-top: 18px !important;
}
.ub-footer-custom {
  margin-top: 6px !important;
}
@media (max-width: 767px) {
  .ub-header > .container > .flex.items-center.justify-between {
    justify-content: space-between !important;
  }
  .ub-footer > .container > div[style*="display:grid"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .ub-footer > .container > div[style*="display:grid"] > div:first-child {
    order: 3;
  }
  .footer-map {
    min-height: 220px !important;
  }
  .footer-map iframe {
    min-height: 220px !important;
  }
}

/* Contacts page — map block on light background */
.bm-con-map-left-292 .bm-info h3,
.bm-con-map-left-292 .bm-info .bm-t {
  color: #1e3a5f !important;
}
.bm-con-map-left-292 .bm-ci {
  color: #334155 !important;
}
.bm-con-map-left-292 .bm-ci a {
  color: #1e3a5f !important;
  font-weight: 500;
}
.bm-con-map-left-292 .bm-ci a:hover {
  color: #3d6b99 !important;
}
.bm-con-map-left-292 .bm-hr {
  color: #5a6b7d !important;
  border-top-color: rgba(30, 58, 95, 0.12) !important;
}
.bm-con-map-left-292 .bm-info {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.06);
}
.bm-con-map-left-292 .bm-map {
  border: 1px solid #e4ebf3;
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.1);
}
.bm-hero-standard-291 .bm-acts .btn {
  border-radius: 999px;
}
.bm-frm-standard-293 .bm-box {
  border: 1px solid #e4ebf3;
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.08) !important;
  width: 100%;
  max-width: 640px;
}
.bm-frm-standard-293 .bm-sp {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  grid-template-columns: unset !important;
  gap: 28px !important;
}
.bm-frm-standard-293 .bm-intro {
  text-align: center;
  max-width: 560px;
  width: 100%;
}
.bm-frm-standard-293 .bm-intro h2 {
  margin-bottom: 10px;
}
.bm-frm-standard-293 .bm-intro h2,
.bm-frm-standard-293 .bm-t {
  color: #1e3a5f !important;
}
.bm-frm-standard-293 .bm-intro p {
  color: #5a6b7d !important;
}
.bm-txt-standard-294 .bm-body h2 {
  color: #1e3a5f !important;
}
