:root {
  --bi-ink: #1f2937;
  --bi-muted: #5f6b78;
  --bi-green: #087a3c;
  --bi-green-dark: #075f31;
  --bi-green-soft: #eaf6ef;
  --bi-surface: #ffffff;
  --bi-surface-alt: #f5f7f6;
  --bi-line: #dfe6e2;
  --bi-dark: #15231c;
  --bi-shadow: 0 18px 50px rgba(27, 43, 35, 0.1);
}

body.balansspb-information-template {
  color: var(--bi-ink);
  background: var(--bi-surface-alt);
}

body.balansspb-information-template .main {
  background: var(--bi-surface);
}

body.balansspb-information-template article.section-text {
  padding: 0;
}

body.balansspb-information-template article.section-text > .row {
  margin: 0;
}

body.balansspb-information-template article .page-content-wrap {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  float: none;
}

body.balansspb-information-template article .page-content-wrap > .row:first-child {
  margin: 0;
  padding: 76px 0 14px;
  background: var(--bi-dark);
}

body.balansspb-information-template article .page-content-wrap > .row:first-child .col-md-12 {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  float: none;
}

body.page-id-1028 article .page-content-wrap > .row:first-child .col-md-12::before,
body.page-id-1030 article .page-content-wrap > .row:first-child .col-md-12::before {
  display: block;
  margin: 0 0 12px;
  color: #7fd3a5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.page-id-1028 article .page-content-wrap > .row:first-child .col-md-12::before {
  content: "Инженерная компания из Санкт-Петербурга";
}

body.page-id-1030 article .page-content-wrap > .row:first-child .col-md-12::before {
  content: "Связаться с Баланс-Спб";
}

body.balansspb-information-template h1.hestia-title.title-in-content {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.balansspb-info-page,
.balansspb-info-page *,
.balansspb-info-page *::before,
.balansspb-info-page *::after {
  box-sizing: border-box;
}

.balansspb-info-page {
  width: 100%;
  color: var(--bi-ink);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.balansspb-info-container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.balansspb-info-hero-copy {
  padding: 0 0 78px;
  background: var(--bi-dark);
}

.balansspb-info-hero-copy .balansspb-info-lead {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.65;
}

.balansspb-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.balansspb-info-button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bi-green);
  border-radius: 7px;
  background: var(--bi-green);
  color: #fff !important;
  box-shadow: none !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.balansspb-info-button:hover,
.balansspb-info-button:focus-visible {
  border-color: var(--bi-green-dark);
  background: var(--bi-green-dark);
  color: #fff !important;
}

.balansspb-info-button--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

.balansspb-info-button--ghost:hover,
.balansspb-info-button--ghost:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--bi-ink) !important;
}

.balansspb-info-trust {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 0 0 44px;
}

.balansspb-info-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--bi-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--bi-shadow);
}

.balansspb-info-trust-item {
  min-height: 136px;
  padding: 26px;
  border-right: 1px solid var(--bi-line);
}

.balansspb-info-trust-item:last-child {
  border-right: 0;
}

.balansspb-info-trust-item span {
  display: block;
  margin-bottom: 12px;
  color: var(--bi-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.balansspb-info-trust-item strong {
  display: block;
  margin-bottom: 7px;
  color: var(--bi-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  line-height: 1.3;
}

.balansspb-info-trust-item p {
  margin: 0;
  color: var(--bi-muted);
  font-size: 14px;
  line-height: 1.55;
}

.balansspb-info-section {
  padding: 78px 0;
}

.balansspb-info-section--soft {
  background: var(--bi-surface-alt);
}

.balansspb-info-section--dark {
  background: var(--bi-dark);
  color: #fff;
}

.balansspb-info-eyebrow {
  margin: 0 0 12px;
  color: var(--bi-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.balansspb-info-section--dark .balansspb-info-eyebrow {
  color: #7fd3a5;
}

.balansspb-info-title {
  max-width: 820px;
  margin: 0;
  color: var(--bi-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.balansspb-info-section--dark .balansspb-info-title {
  color: #fff;
}

.balansspb-info-section-lead {
  max-width: 760px;
  margin: 17px 0 0;
  color: var(--bi-muted);
  font-size: 18px;
  line-height: 1.65;
}

.balansspb-info-section--dark .balansspb-info-section-lead {
  color: rgba(255, 255, 255, 0.72);
}

.balansspb-info-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 64px;
  align-items: start;
}

.balansspb-info-copy p {
  margin: 0 0 18px;
  color: var(--bi-muted);
  font-size: 17px;
  line-height: 1.7;
}

.balansspb-info-copy p:last-child {
  margin-bottom: 0;
}

.balansspb-info-aside {
  padding: 30px;
  border-radius: 14px;
  background: var(--bi-dark);
  color: #fff;
  box-shadow: var(--bi-shadow);
}

.balansspb-info-aside h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
}

.balansspb-info-aside ul {
  margin: 0;
  padding-left: 20px;
}

.balansspb-info-aside li {
  margin: 0 0 11px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.balansspb-info-aside li:last-child {
  margin-bottom: 0;
}

.balansspb-info-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.balansspb-info-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--bi-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 43, 35, 0.05);
}

.balansspb-info-card-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--bi-green-soft);
  color: var(--bi-green);
  font-size: 13px;
  font-weight: 700;
}

.balansspb-info-card h3 {
  margin: 0 0 10px;
  color: var(--bi-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
}

.balansspb-info-card p {
  margin: 0 0 18px;
  color: var(--bi-muted);
  line-height: 1.6;
}

.balansspb-info-card a {
  margin-top: auto;
  color: var(--bi-green) !important;
  font-weight: 700;
  box-shadow: none !important;
}

.balansspb-info-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.balansspb-info-process-item {
  min-height: 210px;
  padding: 28px;
  background: #1c3026;
}

.balansspb-info-process-item span {
  display: block;
  margin-bottom: 20px;
  color: #78cfa0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.balansspb-info-process-item h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px;
  line-height: 1.35;
}

.balansspb-info-process-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.balansspb-info-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.balansspb-info-case {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--bi-line);
  border-radius: 13px;
  background: #fff;
}

.balansspb-info-case span {
  color: var(--bi-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balansspb-info-case h3 {
  margin: 18px 0 12px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px;
  line-height: 1.4;
}

.balansspb-info-case p {
  margin: 0 0 18px;
  color: var(--bi-muted);
  line-height: 1.6;
}

.balansspb-info-case a {
  margin-top: auto;
  color: var(--bi-green) !important;
  font-weight: 700;
  box-shadow: none !important;
}

.balansspb-info-team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.balansspb-info-person {
  padding: 27px;
  border: 1px solid var(--bi-line);
  border-radius: 12px;
  background: #fff;
}

.balansspb-info-person strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bi-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 21px;
}

.balansspb-info-person span {
  display: block;
  margin-bottom: 14px;
  color: var(--bi-green);
  font-weight: 700;
}

.balansspb-info-person p {
  margin: 0;
  color: var(--bi-muted);
  line-height: 1.6;
}

.balansspb-info-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.balansspb-info-contact-card {
  min-height: 180px;
  padding: 25px;
  border: 1px solid var(--bi-line);
  border-radius: 12px;
  background: #fff;
}

.balansspb-info-contact-card span {
  display: block;
  margin-bottom: 16px;
  color: var(--bi-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.balansspb-info-contact-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bi-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 20px;
  line-height: 1.35;
}

.balansspb-info-contact-card a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  color: var(--bi-green) !important;
  font-weight: 700;
  box-shadow: none !important;
}

.balansspb-info-contact-card p {
  margin: 7px 0 0;
  color: var(--bi-muted);
  font-size: 14px;
  line-height: 1.5;
}

.balansspb-map-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
  gap: 22px;
  margin-top: 36px;
  align-items: stretch;
}

.balansspb-map-details {
  padding: 32px;
  border-radius: 14px;
  background: var(--bi-dark);
  color: #fff;
}

.balansspb-map-details h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 25px;
  line-height: 1.3;
}

.balansspb-map-details p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.balansspb-map-details a {
  color: #9be0b9 !important;
  font-weight: 700;
  box-shadow: none !important;
}

.balansspb-map-frame {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--bi-line);
  border-radius: 14px;
  background: #e9eeeb;
  box-shadow: var(--bi-shadow);
}

.balansspb-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.balansspb-info-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.balansspb-info-checklist li {
  position: relative;
  min-height: 120px;
  margin: 0;
  padding: 22px 20px 20px 50px;
  border: 1px solid var(--bi-line);
  border-radius: 11px;
  background: #fff;
  color: #34413a;
  line-height: 1.55;
}

.balansspb-info-checklist li::before {
  position: absolute;
  top: 22px;
  left: 18px;
  display: flex;
  width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bi-green-soft);
  color: var(--bi-green);
  content: "✓";
  font-size: 13px;
  font-weight: 700;
}

.balansspb-info-form-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1.2fr);
  gap: 54px;
  padding: 48px;
  border-radius: 17px;
  background: #fff;
  color: var(--bi-ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.balansspb-info-form-card .balansspb-info-eyebrow {
  color: var(--bi-green);
}

.balansspb-info-form-card .balansspb-info-title {
  font-size: clamp(30px, 3vw, 41px);
}

.balansspb-info-form-card .balansspb-info-section-lead {
  font-size: 16px;
}

.balansspb-info-direct {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bi-line);
}

.balansspb-info-direct p {
  margin: 0 0 7px;
  color: var(--bi-muted);
}

.balansspb-info-direct a {
  color: var(--bi-ink) !important;
  font-size: 21px;
  font-weight: 700;
  box-shadow: none !important;
}

.balansspb-info-form .wpforms-container {
  margin: 0;
}

.balansspb-info-form .wpforms-field {
  padding: 0 0 14px;
}

.balansspb-info-form .wpforms-field-label {
  margin-bottom: 7px;
  color: #34413a;
  font-size: 13px;
  font-weight: 700;
}

.balansspb-info-form input[type="text"],
.balansspb-info-form input[type="email"],
.balansspb-info-form input[type="tel"],
.balansspb-info-form textarea {
  width: 100%;
  max-width: none;
  border: 1px solid #cdd8d2;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.balansspb-info-form input[type="text"],
.balansspb-info-form input[type="email"],
.balansspb-info-form input[type="tel"] {
  min-height: 48px;
}

.balansspb-info-form textarea {
  min-height: 118px;
}

.balansspb-info-form button[type="submit"] {
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 7px;
  background: var(--bi-green);
  box-shadow: none;
  font-weight: 700;
}

.balansspb-requisites {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 34px;
  border: 1px solid var(--bi-line);
  border-radius: 13px;
  background: #fff;
}

.balansspb-requisites h2,
.balansspb-requisites h3 {
  margin: 0;
  color: var(--bi-ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 28px;
  line-height: 1.3;
}

.balansspb-requisites dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 9px 18px;
  margin: 0;
}

.balansspb-requisites dt {
  color: var(--bi-muted);
  font-weight: 500;
}

.balansspb-requisites dd {
  margin: 0;
  color: var(--bi-ink);
  font-weight: 600;
}

@media (max-width: 991px) {
  .balansspb-info-card-grid,
  .balansspb-info-contact-grid,
  .balansspb-info-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balansspb-info-split,
  .balansspb-map-grid,
  .balansspb-info-form-card {
    grid-template-columns: 1fr;
  }

  .balansspb-info-process,
  .balansspb-info-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.balansspb-information-template article .page-content-wrap > .row:first-child {
    padding: 58px 0 12px;
  }

  body.balansspb-information-template article .page-content-wrap > .row:first-child .col-md-12,
  .balansspb-info-container {
    width: min(100% - 28px, 1160px);
  }

  body.balansspb-information-template h1.hestia-title.title-in-content {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1.08;
  }

  .balansspb-info-hero-copy {
    padding-bottom: 60px;
  }

  .balansspb-info-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .balansspb-info-button {
    width: 100%;
  }

  .balansspb-info-trust {
    margin-top: -24px;
    padding-bottom: 22px;
  }

  .balansspb-info-trust-grid,
  .balansspb-info-team-grid {
    grid-template-columns: 1fr;
  }

  .balansspb-info-trust-item {
    min-height: auto;
    padding: 21px;
    border-right: 0;
    border-bottom: 1px solid var(--bi-line);
  }

  .balansspb-info-trust-item:last-child {
    border-bottom: 0;
  }

  .balansspb-info-section {
    padding: 58px 0;
  }

  .balansspb-info-split {
    gap: 30px;
  }

  .balansspb-info-card-grid,
  .balansspb-info-contact-grid,
  .balansspb-info-checklist {
    grid-template-columns: 1fr;
  }

  .balansspb-info-card,
  .balansspb-info-contact-card,
  .balansspb-info-checklist li {
    min-height: auto;
  }

  .balansspb-info-process-item,
  .balansspb-info-case {
    min-height: auto;
  }

  .balansspb-map-frame,
  .balansspb-map-frame iframe {
    min-height: 360px;
  }

  .balansspb-info-form-card {
    gap: 32px;
    padding: 28px 21px;
  }

  .balansspb-requisites {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 22px;
  }

  .balansspb-requisites dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .balansspb-requisites dd {
    margin-bottom: 10px;
  }
}

