/* BEC-only presentation. Generic component bounds live in Gen resources/src. */

/* Core renders a separate pause/resume button for every autoplay carousel.
   BEC keeps the reference autoplay and does not show that extra control.
   display:none removes it from paint, focus order and the accessibility tree;
   it is not an invisible-but-focusable target or a pointer-events overlay. */
.hoba-carousel__autoplay { display: none !important; }

/* Shared BEC brand values. Theme tokens cover only the exact built-in
   equivalents (surface/on-primary/on-accent); other shades stay literal. */
:root { --bec-font: Montserrat, Arial, sans-serif; --bec-navy: #003b7a; --bec-navy-compact: #0b3f73; --bec-navy-deep: #0b3a6f; --bec-navy-stat: #0b3b70; --bec-ink: #222; --bec-ink-muted: #555; --bec-yellow: #fc3; --bec-yellow-compact: #f3c100; --bec-panel: #d5d5d5; --bec-panel-alt: #cfcfcf; --bec-dot-active: #1ea0ff; --bec-link: #1e8bff; }

/* Keep the existing header callback action and authored button bounds. */
[data-area="Header"] .hoba-dialog-action > a[data-hoba-dialog-open] { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
/* Header branding only; native navigation and dialog behavior stay untouched. */
[data-area="Header"] p { margin: 0; }
[data-area="Header"] a[href^="tel:"] { display: inline-flex; align-items: center; }
[data-area="Header"] .hoba-icon-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
[data-area="Header"] .hoba-icon { width: 24px; height: 24px; fill: currentColor; }
[data-area="Header"] .hoba-icon-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
/* The menu's intrinsic width defines the shared desktop bounds, rather than
   a second independent 1200px header container. Mobile keeps the native stack. */
@media (min-width: 64.001rem) {
  main[data-header-area="aware"] > [data-area="Header"] .hoba-layout:has(> .hoba-navigation):has(> .hoba-layout--grid) { display: grid; grid-template-columns: minmax(0, 1fr); width: max-content; max-width: 100%; margin-inline: auto; }
  [data-area="Header"] .hoba-layout:has(> .hoba-navigation) > .hoba-layout--grid { contain: inline-size; width: 100%; }
  [data-area="Header"] .hoba-layout:has(> .hoba-layout--grid) > .hoba-navigation { width: max-content; max-width: 100%; }
}
/* Keep the right-aligned label and icon together, including when the address
   wraps on a narrower column. The bec39.com email's inline gap was 4.56px. */
[data-area="Header"] .hoba-layout--row:has(:is(use[href$="#mapmarker"], use[href$="#envelope"], [data-hoba-icon="mapmarker"], [data-hoba-icon="envelope"])) { width: fit-content; max-width: 100%; flex-wrap: nowrap; column-gap: 4.56px; }
[data-area="Header"] .hoba-layout--row:has(:is(use[href$="#mapmarker"], use[href$="#envelope"], [data-hoba-icon="mapmarker"], [data-hoba-icon="envelope"])) > :has(> .hoba-icon) { flex: 0 0 24px; display: flex; align-items: center; justify-content: center; height: 24px; }
[data-area="Header"] .hoba-layout--row:has(:is(use[href$="#mapmarker"], use[href$="#envelope"], [data-hoba-icon="mapmarker"], [data-hoba-icon="envelope"])) > :not(:has(> .hoba-icon)) { flex: 1; min-width: 0; }
/* The real core.search submit owns the 44px hit area; the existing bank's
   decorative search SVG is painted above it, never a fake/dead anchor. */
[data-area="Header"] .hoba-layout:has(> div > [data-hoba-search]) { position: relative; width: 100%; max-width: 260px; }
[data-area="Header"] :has(> [data-hoba-search]) { width: 100%; min-width: 0; }
[data-area="Header"] .search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-area="Header"] .search__form { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 0; margin: 0; }
[data-area="Header"] .search__input { width: 100%; min-width: 0; height: 44px; margin: 0; }
[data-area="Header"] .search__submit { display: flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; font-size: 0; background: var(--hoba-color-primary) !important; color: var(--hoba-color-on-primary) !important; border: 1px solid currentColor; }
[data-area="Header"] .hoba-layout:has(> div > [data-hoba-search]) > :has(> .hoba-icon) { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; pointer-events: none; }
[data-area="Header"] .search__results, [data-area="Header"] .search__empty { position: absolute; inset-block-start: 100%; inset-inline-start: 0; width: min(300px, calc(100vw - 32px)); max-height: 360px; overflow: auto; margin: 0; padding: 12px; color: var(--hoba-color-text); background: var(--hoba-surface); text-align: start; z-index: 75; }

/* The built-in back-to-top has an enable flag, but no accent variant.
   Keep its runtime/positioning and style only this BEC action, not all buttons. */
body:has(main[data-header-area="aware"] > [data-area="Header"]) > .hoba-to-top {
  background-color: #f7ce55; color: #003366; min-width: 44px; min-height: 44px;
}
body:has(main[data-header-area="aware"] > [data-area="Header"]) > .hoba-to-top:is(:hover, :focus-visible) {
  background-color: #edbf38; color: #003366;
}
body:has(main[data-header-area="aware"] > [data-area="Header"]) > .hoba-to-top:focus-visible {
  outline: 2px solid #003366; outline-offset: 3px; box-shadow: 0 0 0 3px #fff;
}

@scope (.hoba-freeform:has(> .hoba-layout img[alt="Балтийская ЭлектроКомпания — первый экран"])) {
  :scope { width: 100vw; max-width: none; isolation: isolate; }
  :scope > .hoba-layout:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) { width: 100%; max-width: none; overflow: hidden; pointer-events: none; }
  :scope img[alt="Балтийская ЭлектроКомпания — первый экран"] { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
  :scope .block-preview--image:has(> img[alt="Балтийская ЭлектроКомпания — первый экран"]) { display: block; width: 100%; height: 100%; }
  :scope > .hoba-layout:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > * { width: 100%; height: 100%; }
  :scope h1, :scope h2, :scope h3, :scope p { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
  :scope h1 { white-space: pre-line; }
  :scope .button { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  :scope .hoba-style--bg-accent:has(> .hoba-icon) { display: flex; align-items: center; justify-content: center; }
  :scope .hoba-style--bg-accent > .hoba-icon { width: 42px; height: 42px; fill: currentColor; }
  :scope > .hoba-layout:has(> form, > [data-block-type="core.form"] > form) { background: rgb(255 255 255 / 14%) !important; border: 1px solid rgb(255 255 255 / 14%); backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgb(0 0 0 / 35%); padding: 22px 32px; gap: 12px; }
  :scope form { width: 100%; margin: 0; }
  :scope form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { min-width: 0; width: 100%; height: 48px; }
  :scope form input:is([type="checkbox"],[type="radio"]) { width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; }
  :scope form .form-field--checkbox > label { min-height: 44px; cursor: pointer; }
  :scope form .form-field :is(input,textarea,select):invalid:not(:user-invalid):not([aria-invalid="true"]) { border-color: var(--hoba-color-border); }
  :scope form .form-field :is(input,textarea,select):is(:user-invalid,[aria-invalid="true"]) { border-color: var(--hoba-color-danger); }
  :scope form button[type="submit"], :scope form button[type="submit"]:is(:hover,:focus) { width: 100%; background: var(--hoba-color-accent); color: var(--hoba-color-on-accent); min-height: 48px; }
  :scope .hoba-layout--row > :has(a), :scope .hoba-layout--row > :has(button) { flex: 1; }
  :scope .hoba-layout--row > .hoba-style--bg-accent { flex: 0 0 72px; }
  /* Fit the inline desktop form above the existing Freeform action row.
     Dialogs keep their native spacing; tablet/mobile placements are unchanged. */
  @media (min-width: 64.001rem) { :scope form:not(dialog form) .form-field { margin-bottom: 8px; } }
  @media (max-width: 64rem) { :scope > .hoba-layout:has(> form, > [data-block-type="core.form"] > form) { padding: 20px 16px; } }
  @media (max-width: 40rem) {
    :scope .hoba-layout--row > .hoba-style--bg-accent { flex: 0 0 84px; }
    :scope .hoba-layout:has(> .hoba-style--bg-accent) { gap: 10px; }
    :scope .hoba-layout a, :scope .hoba-layout button { width: 100%; justify-content: center; }
  }
}
[data-area="Content"] .hoba-layout:not(.hoba-freeform):has(> .hoba-freeform > .hoba-layout img[alt="Балтийская ЭлектроКомпания — первый экран"]) { margin-top: -24px; }

/* Inner-page image/title hero overlay. */
[data-area="Content"] [data-block="core.container"]:has(> [data-block="core.header"] h1):has(> [data-block="core.image"]) { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; }
[data-area="Content"] [data-block="core.container"]:has(> [data-block="core.header"] h1) > [data-block="core.image"] { grid-area: 1 / 1; min-width: 0; }
[data-area="Content"] [data-block="core.container"]:has(> [data-block="core.header"] h1) > [data-block="core.image"] img { width: 100%; height: clamp(9rem,18vw,16rem); object-fit: cover; filter: brightness(.45); }
[data-area="Content"] [data-block="core.container"]:has(> [data-block="core.image"]) > [data-block="core.header"]:has(h1) { grid-area: 1 / 1; z-index: 1; align-self: center; padding: 1.5rem; color: var(--hoba-color-on-primary); }
[data-area="Content"] [data-block="core.container"]:has(> [data-block="core.header"] h1) > [data-block="core.text"] { padding: 1rem 1.5rem; }

/* BEC lead media and card density. The platform keeps adaptive auto-fit cards
   and visible field labels; these fixed 3/4-up tracks are a site recipe. */
.collection-item__value > img { width: 100%; max-height: clamp(14rem,36vw,28rem); object-fit: contain; }
.collection-list--grid { width: 100%; }
.collection-list--grid > .collection-list__items { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
[data-block="core.collection-list"].hoba-layout--cols-4 .collection-list--grid > .collection-list__items { grid-template-columns: repeat(4,minmax(0,1fr)); }
.collection-list--grid .collection-list__image { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; height: auto; }
.collection-list__fields dt { display: none; }
.collection-list__fields dd { margin-inline: 0; }
.collection-list__field:has(.hoba-gallery), .collection-list__field:has(.hoba-prose) { display: none; }
@media (max-width: 64rem) { .collection-list--grid > .collection-list__items, [data-block="core.collection-list"].hoba-layout--cols-4 .collection-list--grid > .collection-list__items { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 40rem) { .collection-list--grid > .collection-list__items, [data-block="core.collection-list"].hoba-layout--cols-4 .collection-list--grid > .collection-list__items { grid-template-columns: minmax(0,1fr); } }

/* Four-up partner logo rail, including its existing two-column phone recipe. */
[data-carousel][data-carousel-per-view="4"] { align-items: center; }
[data-carousel][data-carousel-per-view="4"] .hoba-slide { display: flex; align-items: center; justify-content: center; min-height: 6.5rem; padding: var(--hoba-space-sm); background: var(--hoba-color-surface); border: 1px solid var(--hoba-color-border); border-radius: var(--hoba-radius-md); }
[data-carousel][data-carousel-per-view="4"] .hoba-slide img { width: 100%; max-width: 12rem; max-height: 5rem; height: auto; object-fit: contain; }
[data-carousel][data-carousel-per-view="4"] .hoba-slide h3 { margin: 0; text-align: center; font-size: var(--hoba-font-small); font-weight: var(--hoba-weight-semibold); line-height: var(--hoba-line-tight); }
@media (max-width: 40rem) {
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) { display: block; overflow: visible; }
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) .hoba-carousel__track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hoba-space-sm); transform: none !important; }
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) .hoba-carousel__track > * { width: auto !important; }
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) .hoba-slide { min-height: 4.5rem; padding: var(--hoba-space-xs, 0.25rem); }
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) .hoba-slide img { max-height: 3rem; }
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) ~ .hoba-carousel__nav,
  [data-carousel][data-carousel-per-view="4"]:not(.hoba-carousel--engine) ~ .hoba-carousel__dots { display: none; }
}

@scope ([data-area="Content"] .hoba-layout:not(.hoba-freeform):has(> .hoba-freeform > .hoba-layout img[alt="Балтийская ЭлектроКомпания — первый экран"]) + .hoba-layout:has(> .hoba-freeform > .hoba-freeform)) {
  :scope { min-height: 0; margin-top: -32px; margin-bottom: -32px; }
  :scope > .hoba-freeform { position: relative !important; width: min(var(--hoba-ff-w), 100vw); max-width: 100vw; height: auto; min-height: var(--hoba-ff-h); padding: 0 0 110px !important; background: var(--hoba-surface); border: 0; border-radius: 0; box-shadow: none; gap: 0; }
  :scope > .hoba-freeform > .hoba-freeform { position: relative !important; width: min(var(--hoba-ff-w), calc(100% - 32px), calc(100vw - 32px)); height: auto; min-height: var(--hoba-ff-h); padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 0; }
  :scope p { margin: 0; padding: 0; font-family: var(--bec-font); font-size: 14px; line-height: 26.6px; font-weight: 400; letter-spacing: .2px; color: var(--bec-ink); text-align: left; }
  @media (max-width: 64rem) {
    :scope > .hoba-freeform { width: min(var(--hoba-ff-md-w, var(--hoba-ff-w)), 100vw); min-height: var(--hoba-ff-md-h, var(--hoba-ff-h)); }
    :scope > .hoba-freeform > .hoba-freeform { width: min(var(--hoba-ff-md-w, var(--hoba-ff-w)), calc(100% - 32px), calc(100vw - 32px)); min-height: var(--hoba-ff-md-h, var(--hoba-ff-h)); }
  }
  @media (max-width: 40rem) {
    :scope > .hoba-freeform { width: min(var(--hoba-ff-sm-w, var(--hoba-ff-w)), 100vw); min-height: var(--hoba-ff-sm-h, var(--hoba-ff-h)); padding-bottom: 42px !important; }
    :scope > .hoba-freeform > .hoba-freeform { width: min(var(--hoba-ff-sm-w, var(--hoba-ff-w)), calc(100% - 32px), calc(100vw - 32px)); min-height: var(--hoba-ff-sm-h, var(--hoba-ff-h)); }
    :scope p { line-height: 22.4px; font-weight: 450; color: #2b2b2b; }
  }
}

@scope ([data-area="Content"] .hoba-layout:not(.hoba-freeform):has(> .hoba-freeform > .hoba-freeform img[alt="Балтийская ЭлектроКомпания — преимущества"])) {
  :scope { min-height: 0; margin-bottom: -32px; }
  :scope .hoba-freeform { --bec-w: var(--hoba-ff-w); --bec-h: var(--hoba-ff-h); --bec-y: var(--hoba-ff-y); }
  :scope > .hoba-freeform { margin-bottom: var(--bec-y); position: relative !important; display: grid; grid-template-columns: minmax(0, 1fr); width: min(var(--bec-w), 100vw); max-width: 100vw; height: auto; min-height: var(--bec-h); padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 0; isolation: isolate; align-content: start; }
  :scope > .hoba-freeform > .hoba-freeform { grid-area: 1 / 1; align-self: start; position: relative !important; top: 0; margin-top: var(--bec-y); margin-bottom: 90px; width: min(var(--bec-w), calc(100% - 32px)); height: auto; min-height: var(--bec-h); padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none; }
  :scope > .hoba-freeform > .hoba-freeform:has(img[alt="Балтийская ЭлектроКомпания — преимущества"]) { position: absolute !important; top: var(--bec-y); margin: 0; width: min(var(--bec-w), 100%); height: max(var(--bec-h), 100%); min-height: 0; pointer-events: none; }
  :scope img[alt="Балтийская ЭлектроКомпания — преимущества"] { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
  :scope .hoba-freeform:has(> [data-block-type="core.header"]), :scope .hoba-freeform:has(> [data-block="core.header"]) { color: var(--hoba-color-on-primary); font-family: var(--bec-font); font-size: 42px; font-weight: 700; line-height: 63px; text-align: center; text-shadow: 0 2px 14px rgb(0 0 0 / 35%); }
  :scope :is(header, h1, h2, h3, p) { margin: 0; padding: 0; color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; letter-spacing: normal; }
  :scope .hoba-card, :scope [data-block-type="core.card"], :scope [data-block="core.card"] { background: none !important; padding: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none !important; transform: none; }
  :scope .hoba-card > :is(h3, a, img) { display: none; }
  :scope .hoba-card p { color: var(--hoba-color-on-primary); font-family: var(--bec-font); font-size: 18px; font-weight: 500; line-height: 24.3px; text-align: center; text-shadow: 0 2px 14px rgb(0 0 0 / 45%); }
  :scope img[alt^="Преимущество — "] { display: block; box-sizing: content-box; width: 56px; height: 56px; padding: 9px; margin: 0 auto 20px; background: var(--bec-yellow); border-radius: 2px; box-shadow: 0 10px 18px rgb(0 0 0 / 25%); object-fit: contain; }
  @media (max-width: 64rem) {
    :scope .hoba-freeform { --bec-w: var(--hoba-ff-md-w, var(--hoba-ff-w)); --bec-h: var(--hoba-ff-md-h, var(--hoba-ff-h)); --bec-y: var(--hoba-ff-md-y, var(--hoba-ff-y)); }
    :scope > .hoba-freeform > .hoba-freeform { margin-bottom: 34px; }
    :scope > .hoba-freeform > .hoba-freeform:has(img[alt="Балтийская ЭлектроКомпания — преимущества"]) { margin: 0; }
    :scope .hoba-freeform:has(> [data-block-type="core.header"]), :scope .hoba-freeform:has(> [data-block="core.header"]) { font-size: 28px; font-weight: 800; line-height: 30.8px; }
    :scope .hoba-card p { font-size: 13px; font-weight: 700; line-height: 17.55px; }
    :scope img[alt^="Преимущество — "] { width: 54px; height: 54px; padding: 21px; margin-bottom: 14px; background: var(--bec-yellow-compact); border-radius: 0; }
  }
  @media (max-width: 40rem) {
    :scope .hoba-freeform { --bec-w: var(--hoba-ff-sm-w, var(--hoba-ff-md-w, var(--hoba-ff-w))); --bec-h: var(--hoba-ff-sm-h, var(--hoba-ff-md-h, var(--hoba-ff-h))); --bec-y: var(--hoba-ff-sm-y, var(--hoba-ff-md-y, var(--hoba-ff-y))); }
  }
}

@scope ([data-area="Content"] .hoba-layout:not(.hoba-freeform):has(> .hoba-freeform > .hoba-freeform img[alt="Подключение электричества"]):has(> .hoba-freeform > .hoba-freeform img[alt="Товары и комплектующие"])) {
  :scope { min-height: 0; margin-bottom: -32px; }
  :scope .hoba-freeform { --bec-dir-w: var(--hoba-ff-w); --bec-dir-h: var(--hoba-ff-h); --bec-dir-y: var(--hoba-ff-y); }
  :scope > .hoba-freeform { position: relative !important; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; width: min(var(--bec-dir-w), 100vw); max-width: 100vw; height: auto; min-height: var(--bec-dir-h); margin-bottom: var(--bec-dir-y); padding: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--hoba-surface); isolation: isolate; }
  :scope > .hoba-freeform > .hoba-freeform { grid-area: 1 / 1; align-self: start; position: relative !important; top: 0; width: min(var(--bec-dir-w), calc(100% - 32px)); height: auto; min-height: var(--bec-dir-h); margin-top: var(--bec-dir-y); margin-bottom: 80px; padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 0; }
  :scope .hoba-freeform:has(> [data-block-type="core.header"]), :scope .hoba-freeform:has(> [data-block="core.header"]) { font-family: var(--bec-font); font-size: 36px; line-height: 54px; font-weight: 600; color: var(--bec-navy); text-align: center; text-shadow: none; }
  :scope :is(header, h1, h2, h3, p) { margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: normal; }
  :scope .hoba-card, :scope [data-block-type="core.card"], :scope [data-block="core.card"] { background: none !important; padding: 0 !important; border: 0 !important; border-radius: 0; box-shadow: none; transform: none !important; }
  :scope .hoba-card { display: block; gap: 0; position: relative; overflow: hidden; text-align: center; transition: box-shadow .3s ease; }
  :scope .hoba-card > :is(h3, p) { display: none; }
  :scope .hoba-card > img { display: block; width: 440px; max-width: 100%; height: 260px; max-height: none; object-fit: cover; object-position: center; margin: 0 auto; border-radius: 3px; transition: transform .45s ease; }
  :scope .hoba-card > a.button { display: block; position: static; width: auto; min-width: 0; min-height: 0; height: auto; margin: 14px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #111; font-family: var(--bec-font); font-size: 20px; line-height: 30px; font-weight: 500; letter-spacing: normal; text-transform: none; text-decoration: none; white-space: normal; transform: none; }
  :scope .hoba-card > a.button::after { content: ""; position: absolute; inset: 0; }
  :scope .hoba-card:hover > img { transform: scale(1.06); }
  :scope .hoba-card:hover { box-shadow: 0 12px 30px rgb(0 0 0 / 12%); }
  :scope .hoba-card:focus-within { outline: 2px solid var(--bec-navy); outline-offset: -2px; }
  @media (max-width: 64rem) {
    :scope .hoba-freeform { --bec-dir-w: var(--hoba-ff-md-w, var(--hoba-ff-w)); --bec-dir-h: var(--hoba-ff-md-h, var(--hoba-ff-h)); --bec-dir-y: var(--hoba-ff-md-y, var(--hoba-ff-y)); }
    :scope > .hoba-freeform > .hoba-freeform { margin-bottom: 28px; }
    :scope .hoba-freeform:has(> [data-block-type="core.header"]), :scope .hoba-freeform:has(> [data-block="core.header"]) { font-size: 26px; line-height: 29.12px; font-weight: 800; color: var(--bec-navy-compact); }
  }
  @media (max-width: 40rem) {
    :scope .hoba-freeform { --bec-dir-w: var(--hoba-ff-sm-w, var(--hoba-ff-md-w, var(--hoba-ff-w))); --bec-dir-h: var(--hoba-ff-sm-h, var(--hoba-ff-md-h, var(--hoba-ff-h))); --bec-dir-y: var(--hoba-ff-sm-y, var(--hoba-ff-md-y, var(--hoba-ff-y))); }
  }
}

/* Contacts page: bec39 reference layout, BEC checked-in values/assets only. */
.hoba-author--contacts {
  --bec-contact-ink: #232323;
  --bec-contact-link: #1e8bff;
  font-family: var(--bec-font);
}
.hoba-author--contacts-hero.hoba-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  min-height: 250px;
  height: 250px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
  background: var(--hoba-color-primary);
}
.hoba-author--contacts-hero > :is(img, .hoba-image-link) {
  grid-area: 1 / 1;
  width: 100%;
  height: 250px;
  max-height: none;
}
.hoba-author--contacts-hero > img {
  display: block;
  object-fit: cover !important;
  object-position: center;
  filter: brightness(.45);
}
.hoba-author--contacts-hero > .hoba-image-link {
  display: block;
}
.hoba-author--contacts-hero > .hoba-image-link img {
  display: block;
  width: 100%;
  height: 250px;
  max-height: none;
  object-fit: cover !important;
  object-position: center;
  filter: brightness(.45);
}
.hoba-author--contacts-hero > :has(> h1) {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: center;
  width: 100%;
  padding: 1rem;
  color: var(--hoba-color-on-primary);
  text-align: center;
}
.hoba-author--contacts-hero h1 {
  margin: 0;
  color: inherit;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  text-align: center;
}
.hoba-author--contacts h2 {
  margin: 0;
  color: var(--bec-navy);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}
.hoba-author--contacts h3 {
  margin: 0;
  color: var(--bec-ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}
.hoba-author--contacts-card {
  min-width: 0;
}
.hoba-author--contacts-card h3 {
  margin-top: 0;
}
.hoba-author--contacts-card h2 {
  color: var(--bec-navy);
}
.hoba-author--contacts-card p,
.hoba-author--contacts-card a {
  overflow-wrap: anywhere;
}
.hoba-author--contacts :is(a, .button) {
  color: var(--bec-contact-link);
}
.hoba-author--contacts :is(a, .button):hover {
  text-decoration: underline;
}
.hoba-author--contacts-form form {
  width: 100%;
  min-width: 0;
}
.hoba-author--contacts-form .form-field {
  min-width: 0;
}
.hoba-author--contacts-section {
  padding-block: 0;
}
.hoba-author--contacts-tour {
  min-width: 0;
  padding: clamp(16px, 3vw, 32px) !important;
}
.hoba-author--contacts-tour .hoba-author--contacts-tour-image,
.hoba-author--contacts-tour .hoba-author--contacts-tour-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.hoba-author--contacts-tour .hoba-author--contacts-tour-link {
  min-height: 44px;
  color: var(--bec-contact-link);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-underline-offset: 3px;
}
.hoba-author--contacts-tour .hoba-author--contacts-tour-link:focus-visible {
  outline: 2px solid var(--bec-contact-link);
  outline-offset: 3px;
}
.hoba-author--contacts .hoba-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--hoba-color-on-primary);
}
.hoba-author--contacts .hoba-icon-link[href^="https://wa.me/"] { background: #25d366; }
.hoba-author--contacts .hoba-icon-link[href^="https://t.me/"],
.hoba-author--contacts .hoba-icon-link[href^="https://tele.click/"] { background: #229ed9; }
.hoba-author--contacts .hoba-icon-link[href^="https://vk.com/"] { background: #0077ff; }
.hoba-author--contacts .hoba-icon-link[href^="https://www.instagram.com/"] { background: linear-gradient(135deg, #ff4d6d, #ffcc00); }
.hoba-author--contacts .hoba-icon-link[href^="https://ok.ru/"] { background: #ff8a00; }
.hoba-author--contacts .hoba-icon-link:is(:hover, :focus-visible) {
  color: var(--hoba-color-on-primary);
  box-shadow: 0 0 0 2px var(--hoba-color-primary);
}
.hoba-author--contacts .hoba-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.hoba-author--contacts-employees {
  gap: 0 !important;
  padding-block: 0;
}
.hoba-author--contacts-employees > h2 {
  margin: 0 0 32px;
}
.hoba-author--contacts-employee {
  align-items: stretch !important;
  gap: 0 !important;
}
.hoba-author--contacts-employee-copy {
  min-width: 0;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.hoba-author--contacts-employee-copy-right {
  align-items: flex-end;
  text-align: right;
}
.hoba-author--contacts-employee-copy-left {
  align-items: flex-start;
  text-align: left;
}
.hoba-author--contacts-employee-copy :is(h3, p, a) {
  overflow-wrap: anywhere;
}
.hoba-author--contacts-employee-photo {
  min-width: 0;
  align-self: stretch;
}
/* Alternating staff photos are flush to the central 6/12 seam and to each
   other vertically, so consecutive rows meet corner-to-corner with no gap
   and no overlap. The copy stays inside its own half with readable padding. */
.hoba-author--contacts-employee-photo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.hoba-author--contacts-employee-plain .hoba-author--contacts-employee-photo {
  align-items: flex-end;
}
.hoba-author--contacts-employee-flip .hoba-author--contacts-employee-photo {
  align-items: flex-start;
}
.hoba-author--contacts-map {
  position: relative;
  left: 50%;
  width: 100cqw;
  max-width: 100cqw;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: translateX(-50%);
}
[data-area="Content"]:has(.hoba-author--contacts-map) {
  container-type: inline-size;
  container-name: bec-contacts-page;
}
.hoba-author--contacts-map :is([data-plugin^="map.yandex"], .yandex-map),
.hoba-author--contacts-map .yandex-map__canvas,
.hoba-author--contacts-map .yandex-map__canvas > iframe {
  width: 100%;
  max-width: 100%;
  height: 420px !important;
  min-height: 420px;
}
.hoba-author--contacts-map .yandex-map__canvas > iframe {
  display: block;
  border: 0;
}
@media (max-width: 959px) {
  .hoba-author--contacts-hero h1 { font-size: 36px; }
  .hoba-author--contacts h2 { font-size: 26px; }
  .hoba-author--contacts h3 { font-size: 17px; }
}
@media (max-width: 767px) {
  .hoba-author--contacts-hero.hoba-layout,
  .hoba-author--contacts-hero > :is(img, .hoba-image-link),
  .hoba-author--contacts-hero > :is(img, .hoba-image-link) img {
    height: 250px;
    min-height: 250px;
  }
  .hoba-author--contacts-hero h1 { font-size: 32px; }
  .hoba-author--contacts h2 { font-size: 23px; }
  .hoba-author--contacts h3 { font-size: 15px; }
  .hoba-author--contacts-top.hoba-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hoba-author--contacts-top > * {
    grid-column: 1 / -1 !important;
    width: 100%;
  }
  .hoba-author--contacts-employee-copy-right,
  .hoba-author--contacts-employee-copy-left {
    align-items: flex-start;
    text-align: left;
  }
  .hoba-author--contacts-employee-photo img {
    max-width: 100%;
    max-height: none;
  }
  .hoba-author--contacts-map :is([data-plugin^="map.yandex"], .yandex-map),
  .hoba-author--contacts-map .yandex-map__canvas,
  .hoba-author--contacts-map .yandex-map__canvas > iframe {
    height: 420px !important;
    min-height: 420px;
  }
}
@media (max-width: 479px) {
  .hoba-author--contacts-hero h1 { font-size: 25px; }
  .hoba-author--contacts h2 { font-size: 18px; }
  .hoba-author--contacts h3 { font-size: 13px; }
  .hoba-author--contacts-employee-copy {
    gap: 2px;
  }
  .hoba-author--contacts-employee-copy a {
    font-size: 13px;
    line-height: 19px;
  }
}


/* bec-home-completion:commercial:start */
/* Home #5–6 only. The literal scope is also the integration boundary. */
@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:is(:nth-child(5), :nth-child(6))) {
  :scope { min-height: 0; margin-bottom: -32px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  :scope .hoba-freeform {
    --bec-w: var(--hoba-ff-w); --bec-h: var(--hoba-ff-h); --bec-y: var(--hoba-ff-y); --bec-x: var(--hoba-ff-x);
    --bec-r: var(--hoba-ff-rot, 0deg); --bec-z: var(--hoba-ff-z, 1);
  }
  :scope > .hoba-freeform {
    position: relative !important; display: grid !important; grid-template-columns: minmax(0, 1fr); align-content: start;
    width: min(var(--bec-w), 100vw); max-width: 100vw; height: auto; min-height: var(--bec-h);
    left: 50%; top: 0; margin: var(--bec-y) 0 0; padding: 0;
    border: 0; border-radius: 0; box-shadow: none; gap: 0; isolation: isolate;
    background: var(--hoba-surface); font-family: var(--bec-font); text-align: center;
  }
  :scope > .hoba-freeform > .hoba-freeform {
    grid-area: 1 / 1 !important; align-self: start; justify-self: start; position: relative !important;
    left: 50%; top: 0; width: min(var(--bec-w), calc(100% - 32px));
    max-width: calc(100vw - 32px); height: auto; min-height: var(--bec-h);
    margin: var(--bec-y) 0 20px; padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 0;
  }
  :scope :is(header, h1, h2, h3, p) { margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; }
  :scope [data-block-type="core.header"], :scope [data-block="core.header"] { width: 100%; max-width: 100%; font: inherit !important; color: inherit !important; letter-spacing: inherit !important; }
  :scope > .hoba-freeform > .hoba-freeform:has(:is([data-block-type="core.header"], [data-block="core.header"])) {
    font-size: 40px; line-height: 60px; font-weight: 500; color: var(--bec-navy);
  }
  /* Authored plain canvases carry bg-none !important in Core. */
  /* Reuse maps.css's full-page Content query container. cqw excludes the
     scrollbar; the centered band is independent of the main content column. */
  :scope:nth-child(5) > .hoba-freeform {
    width: 99cqw !important; max-width: 99cqw;
    background: var(--bec-panel) !important;
  }
  :scope:nth-child(5) > .hoba-freeform > .hoba-freeform:has(:is([data-block-type="core.header"], [data-block="core.header"])) {
    font-size: 44px; line-height: 50.6px; color: var(--bec-navy-deep);
  }
  :scope a.button {
    display: inline-grid; place-items: center; width: 100%; max-width: 100%; min-height: 49px;
    margin: 0; padding: 14px 20px !important; border: 0; border-radius: 0; background: var(--bec-yellow) !important; color: var(--hoba-color-on-accent) !important;
    font: 600 14px/21px var(--bec-font) !important; letter-spacing: .4px; text-transform: uppercase;
    text-decoration: none; white-space: normal; box-shadow: none;
  }
  :scope a.button:focus-visible { outline: 2px solid var(--bec-navy); outline-offset: 4px; }
  :scope .stat {
    display: block; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0;
    background: none !important; box-shadow: none !important; transform: none !important; text-align: center;
  }
  :scope .stat__value { display: block; font: 700 64px/64px var(--bec-font); color: var(--bec-navy-stat); }
  :scope .stat__label { display: block; margin-top: 10px; font: 400 15px/21px var(--bec-font); color: var(--bec-navy-stat); }
  :scope .hoba-freeform { transform: translateX(calc(-50% + var(--bec-x))) rotate(var(--bec-r)); z-index: var(--bec-z); }
  @media (max-width: 64rem) {
    :scope .hoba-freeform {
      --bec-w: var(--hoba-ff-md-w, var(--hoba-ff-w)); --bec-h: var(--hoba-ff-md-h, var(--hoba-ff-h));
      --bec-y: var(--hoba-ff-md-y, var(--hoba-ff-y)); --bec-x: var(--hoba-ff-md-x, var(--hoba-ff-x));
      --bec-r: var(--hoba-ff-md-rot, var(--hoba-ff-rot, 0deg)); --bec-z: var(--hoba-ff-md-z, var(--hoba-ff-z, 1));
    }
    :scope > .hoba-freeform > .hoba-freeform:has(:is([data-block-type="core.header"], [data-block="core.header"])) {
      font-size: 26px; line-height: 29.12px; font-weight: 700; color: var(--bec-navy-compact); letter-spacing: -.2px;
    }
    :scope:nth-child(5) > .hoba-freeform > .hoba-freeform:has(:is([data-block-type="core.header"], [data-block="core.header"])) {
      font-size: 24px; line-height: 27.6px; font-weight: 900; letter-spacing: -.8px;
    }
    :scope a.button { min-height: 46px; padding: 14px 20px !important; background: var(--bec-yellow-compact) !important; color: #000 !important; font-size: 12px !important; line-height: 18px !important; letter-spacing: .2px; box-shadow: 0 6px 14px rgb(0 0 0 / 18%); }
    :scope .stat__value { font-size: 72px; line-height: 72px; font-weight: 800; letter-spacing: -1.2px; color: #002d52; }
  }
  @media (max-width: 40rem) {
    :scope .hoba-freeform {
      --bec-w: var(--hoba-ff-sm-w, var(--hoba-ff-md-w, var(--hoba-ff-w))); --bec-h: var(--hoba-ff-sm-h, var(--hoba-ff-md-h, var(--hoba-ff-h)));
      --bec-y: var(--hoba-ff-sm-y, var(--hoba-ff-md-y, var(--hoba-ff-y))); --bec-x: var(--hoba-ff-sm-x, var(--hoba-ff-md-x, var(--hoba-ff-x)));
      --bec-r: var(--hoba-ff-sm-rot, var(--hoba-ff-md-rot, var(--hoba-ff-rot, 0deg))); --bec-z: var(--hoba-ff-sm-z, var(--hoba-ff-md-z, var(--hoba-ff-z, 1)));
    }
  }
  @media (max-width: 359px) {
    :scope:nth-child(5) > .hoba-freeform > .hoba-freeform:has(:is([data-block-type="core.header"], [data-block="core.header"])) { font-size: 22px; }
  }
}

/* Directions heading only: keep its existing section geometry and card styles.
   The recipe owns bold/center; this also covers older rendered plain headers. */
@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:nth-child(4)) {
  :scope > .hoba-freeform > .hoba-freeform:first-child :is(header, h1, h2) {
    font: 700 36px/54px var(--bec-font); color: var(--bec-navy); text-align: center;
  }
  @media (max-width: 64rem) {
    :scope > .hoba-freeform > .hoba-freeform:first-child :is(header, h1, h2) {
      font-size: 26px; line-height: 29.12px; color: var(--bec-navy-compact);
    }
  }
}
/* bec-home-completion:commercial:end */

/* bec-home-completion:content:start */
/* Home #7–10 only. Each Freeform zone occupies the same explicit grid cell;
   authored y and x remain independent, including both responsive bands. */
@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:is(:nth-child(7), :nth-child(8), :nth-child(9), :nth-child(10))) {
  :scope { min-width: 0; padding: 0; overflow: visible; }
  :scope .hoba-freeform { --bec-content-w: var(--hoba-ff-w); --bec-content-h: var(--hoba-ff-h); --bec-content-x: var(--hoba-ff-x); --bec-content-y: var(--hoba-ff-y); }
  :scope > .hoba-freeform {
    position: relative !important; left: 50% !important; top: 0 !important;
    transform: translateX(-50%) !important; display: grid !important;
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto;
    align-content: start; align-items: start; justify-items: center; gap: 0;
    width: min(var(--bec-content-w), 100vw) !important;
    max-width: 100vw; height: auto !important; min-height: var(--bec-content-h) !important;
    padding: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none;
    background: var(--hoba-surface); overflow: visible; isolation: isolate;
  }
  :scope > .hoba-freeform > .hoba-freeform {
    grid-area: 1 / 1 !important; align-self: start; justify-self: center;
    position: relative !important; left: auto !important; top: 0 !important;
    transform: translateX(clamp(calc(-50vw + 50% + 16px), var(--bec-content-x), calc(50vw - 50% - 16px))) !important;
    width: min(var(--bec-content-w), calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px); height: auto !important;
    min-height: var(--bec-content-h) !important;
    margin: var(--bec-content-y) 0 80px; padding: 0; gap: 0;
    border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible;
  }
  :scope :is(h1, h2, h3, header, p, ul, figure) { margin: 0; }
  /* Missing source data.level renders <header>, nested once in preview.
     Normalize the real primitive as well as semantic h1/h2 without changing data. */
  :scope :is(h1, h2, header) {
    display: block; min-width: 0; max-width: 100%;
    font: 500 44px/66px var(--bec-font); color: var(--bec-navy-deep); text-align: center;
    white-space: normal; overflow-wrap: anywhere; word-break: normal;
  }
  :scope header > header { font: inherit; color: inherit; }
  @media (max-width: 359px) {
    :scope :is(h1, h2, header) { font-size: clamp(32px, calc(30vw - 64px), 44px); }
  }
  :scope [data-carousel="true"] {
    display: flex !important; flex-wrap: nowrap; align-items: stretch; gap: 18px;
    width: 100%; min-width: 0; max-width: 100%; min-height: 226px;
    padding: 0; border: 0; border-radius: 0; background: transparent;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  }
  :scope [data-carousel="true"].hoba-carousel--engine { display: block !important; overflow: hidden; }
  /* Runtime replaces direct slides with a track; never size that track as a
     slide, nor force a grid based on the dynamic number of runtime children. */
  :scope [data-carousel="true"].hoba-carousel--engine > .hoba-carousel__track {
    display: flex; flex-wrap: nowrap; width: 100%; max-width: none; min-width: 0;
    flex: 0 0 auto; gap: 18px; padding: 0; margin: 0; border: 0;
  }
  :scope .hoba-slide { position: relative; flex: 0 0 320px; width: 320px; min-width: 0; max-width: 320px; padding: 0; margin: 0; border: 0; background: transparent; scroll-snap-align: start; }
  :scope .hoba-slide img { display: block; width: 320px; height: 180px; max-width: 100%; object-fit: cover; border-radius: 0; }
  :scope .hoba-slide h3 { padding-top: 16px; color: var(--bec-ink); font: 400 18px/24.3px var(--bec-font); }
  :scope .hoba-slide p { display: none; }
  :scope .hoba-slide > a { position: absolute; inset: 0; display: block; padding: 0; border: 0; border-radius: inherit; background: transparent; color: transparent; font-size: 0; text-decoration: none; }
  :scope .hoba-slide > a:focus-visible { outline: 3px solid var(--bec-navy-deep); outline-offset: -3px; }
  :scope .hoba-carousel__dots { justify-content: center; gap: 14px; margin: 24px 0 0; }
  :scope .hoba-carousel__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; }
  :scope .hoba-carousel__dot--active { background: var(--bec-dot-active); }
  @media (max-width: 1024px) {
    :scope .hoba-freeform { --bec-content-w: var(--hoba-ff-md-w, var(--hoba-ff-w)); --bec-content-h: var(--hoba-ff-md-h, var(--hoba-ff-h)); --bec-content-x: var(--hoba-ff-md-x, var(--hoba-ff-x)); --bec-content-y: var(--hoba-ff-md-y, var(--hoba-ff-y)); }
  }
  @media (max-width: 640px) {
    :scope .hoba-freeform { --bec-content-w: var(--hoba-ff-sm-w, var(--hoba-ff-w)); --bec-content-h: var(--hoba-ff-sm-h, var(--hoba-ff-h)); --bec-content-x: var(--hoba-ff-sm-x, var(--hoba-ff-x)); --bec-content-y: var(--hoba-ff-sm-y, var(--hoba-ff-y)); }
  }
}

@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:nth-child(7)) {
  /* Only the outer gray band widens. Its existing centered inner zones retain
     their authored widths and the main content gutters. */
  :scope > .hoba-freeform {
    width: 99cqw !important; max-width: 99cqw;
    background: var(--bec-panel) !important;
  }
  :scope [data-carousel="true"] { min-height: 290px; }
  :scope [data-carousel] [data-block="core.slide"] {
    flex: 0 0 320px; width: 320px !important; min-width: 0; max-width: 100%;
  }
  :scope [data-carousel][data-carousel-per-view="4"] ~ .hoba-carousel__dots { display: flex; }
  /* Native core.slide already emits img + h3 + one entry link. Reset the
     inherited generic article/card layout; retain the native measured wrapper.
     Reference photo is 320 × 180; the caption is real text below it. */
  :scope [data-carousel] article.hoba-slide {
    display: block; flex: none; width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 0;
    padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none;
    background: transparent; text-align: left;
  }
  :scope [data-carousel] article.hoba-slide > img {
    display: block; width: 100%; max-width: 100%; height: auto; max-height: none;
    aspect-ratio: 16 / 9; object-fit: cover; margin: 0; border-radius: 0;
  }
  :scope [data-carousel] article.hoba-slide > h3 {
    position: static; display: block; width: 100%; margin: 0; padding: 16px 0 0;
    color: var(--bec-ink); font: 400 18px/24.3px var(--bec-font);
    text-align: left; white-space: normal;
  }
  :scope [data-carousel] article.hoba-slide > a { box-shadow: none; border-radius: 0; }
  /* core.button renders a.button (not .hoba-button). Do not style slide links. */
  :scope a.button[data-block="core.button"],
  :scope a.button[data-block-type="core.button"] {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; max-width: 100%; min-width: 0; min-height: 52px;
    padding: 14px 28px !important; border: 2px solid var(--bec-yellow) !important;
    border-radius: 4px !important; background: var(--bec-yellow) !important;
    color: var(--hoba-color-on-accent) !important;
    font: 700 14px/20px var(--bec-font); text-align: center; text-decoration: none;
    white-space: normal; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  :scope a.button[data-block="core.button"]:hover,
  :scope a.button[data-block-type="core.button"]:hover {
    background: var(--bec-navy) !important; border-color: var(--bec-navy) !important;
    color: var(--hoba-color-on-primary) !important;
  }
  :scope a.button[data-block="core.button"]:focus-visible,
  :scope a.button[data-block-type="core.button"]:focus-visible {
    outline: 3px solid var(--bec-navy); outline-offset: 4px;
  }
  @media (prefers-reduced-motion: reduce) {
    :scope a.button[data-block="core.button"], :scope a.button[data-block-type="core.button"] { transition: none; }
  }
}

@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:nth-child(8)) {
  /* The full-bleed map has no 16px gutter: applying the generic offset clamp
     to a 99vw box reverses its bounds and shifts the centered map right. */
  :scope > .hoba-freeform > .hoba-freeform:has(> :is([data-plugin="map.yandex"], [data-block-type="map.yandex"], [data-block="map.yandex"])) {
    justify-self: center; transform: translateX(var(--bec-content-x)) !important;
    width: min(var(--bec-content-w), 99vw, 100%) !important;
    max-width: min(99vw, 100%); margin-bottom: 60px;
  }
  /* Provider controls and balloons retain their own overflow behavior. */
  :scope [data-plugin="map.yandex"] { min-height: 520px; overflow: visible; }
}

@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:nth-child(9)) {
  :scope > .hoba-freeform > .hoba-freeform { margin-bottom: 70px; }
  /* Child-based slides have a native layout wrapper; the legacy data surface
     inside it is empty. Size the real slide, not that empty inner article. */
  :scope [data-carousel] [data-block="core.slide"] { flex: 0 0 320px; width: 320px; min-width: 0; max-width: 100%; gap: 0; border-radius: 8px; box-shadow: 0 3px 10px rgb(0 0 0 / 12%); overflow: hidden; }
  :scope [data-carousel] [data-block="core.slide"] > .hoba-slide:empty { display: none; }
  :scope [data-carousel] [data-block="core.slide"] > .hoba-image-link { display: block; }
  :scope [data-carousel] [data-block="core.slide"] > .hoba-image-link > img { display: block; width: 100%; height: 200px; object-fit: cover; }
  :scope .hoba-slide { border-radius: 8px; box-shadow: 0 3px 10px rgb(0 0 0 / 12%); overflow: hidden; }
  :scope .hoba-slide img { height: 200px; border-radius: 8px; }
  :scope .hoba-slide :is(h3, p) { display: none; }
  :scope [data-carousel="true"] { min-height: 200px; }
  :scope .hoba-carousel__nav { position: absolute; top: 83px; inset-inline: 0; display: flex; justify-content: space-between; pointer-events: none; }
  :scope .hoba-carousel__nav button { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; pointer-events: auto; }
  @media (max-width: 1024px) {
    :scope :is(h1, h2, header) { font-size: 28px; line-height: 30.8px; font-weight: 800; }
    :scope > .hoba-freeform > .hoba-freeform { margin-bottom: 34px; }
  }
  @media (max-width: 640px) {
    :scope [data-carousel] [data-block="core.slide"] { flex-basis: 180px; width: 180px; max-width: 180px; }
    :scope [data-carousel] [data-block="core.slide"] > .hoba-image-link > img { height: auto; aspect-ratio: 2560 / 1811; }
    :scope .hoba-slide { flex-basis: 180px; width: 180px; max-width: 180px; }
    :scope .hoba-slide img { width: 180px; height: auto; aspect-ratio: 2560 / 1811; }
    :scope [data-carousel="true"] { min-height: 150px; }
  }
}

@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:nth-child(10)) {
  :scope > .hoba-freeform {
    width: 99cqw !important; max-width: 99cqw;
    background: var(--bec-panel) !important;
  }
  :scope :is(h1, h2, header) { line-height: 50.6px; }
  :scope p { color: var(--bec-ink-muted); font: 400 14px/21.7px var(--bec-font); margin-bottom: 18px; }
  :scope :is(ul, .hoba-benefits) { padding-left: 20px; color: var(--bec-ink-muted); font: 400 14px/23.8px var(--bec-font); }
  /* The built-in compound emits .benefits, not .hoba-benefits. Its theme
     foreground must not turn this reference's #555 copy into pale text. */
  :scope .benefits, :scope .benefits :is(ul, li), :scope p { color: var(--bec-ink-muted); }
  :scope li { margin: 8px 0; }
  :scope .benefits > h2 { display: none; }
  :scope img { display: block; width: 320px; max-width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto; }
  @media (max-width: 1024px) {
    :scope :is(h1, h2, header) { font-size: 26px; line-height: 29.9px; font-weight: 900; letter-spacing: .2px; }
    :scope p { text-align: center; }
    :scope img { border-radius: 6px; }
  }
}
/* bec-home-completion:content:end */

/* bec-home-completion:trust:start */
/* Home #11–15. Widget internals remain Flow; the canvas and independent
   heading/widget zones share one grid cell at every canonical band. */
@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:is(:nth-child(11), :nth-child(12), :nth-child(13), :nth-child(14), :nth-child(15))) {
  :scope { min-height: 0; margin-bottom: -32px; }
  /* Only intermediate sections cancel the following Content stack gap. */
  :scope:nth-child(15) { margin-bottom: 0; }
  :scope .hoba-freeform {
    --trust-w: var(--hoba-ff-w); --trust-h: var(--hoba-ff-h);
    --trust-x: var(--hoba-ff-x); --trust-y: var(--hoba-ff-y);
  }
  :scope > .hoba-freeform {
    position: relative !important; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start;
    width: min(var(--trust-w), 100%); max-width: 100vw; height: auto; min-height: var(--trust-h);
    left: calc(50% + var(--trust-x)); top: 0; margin: var(--trust-y) 0 0; padding: 0;
    gap: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--hoba-surface);
    isolation: isolate; font-family: var(--bec-font);
  }
  :scope > .hoba-freeform > .hoba-freeform {
    grid-area: 1 / 1; position: relative !important; align-self: start; justify-self: start;
    left: calc(50% + var(--trust-x)); top: 0; width: min(var(--trust-w), calc(100% - 32px));
    max-width: calc(100vw - 32px); height: auto; min-height: var(--trust-h);
    margin: var(--trust-y) 0 0; padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none;
  }
  :scope :is(header, h1, h2, h3, p, blockquote, cite) { margin: 0; padding: 0; font: inherit; color: inherit; }
  /* core.header without a level renders nested header tags in draft preview. */
  :scope header { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  :scope > .hoba-freeform > .hoba-freeform:has(> header, > div > header, > :is([data-block="core.header"], [data-block-type="core.header"])) {
    color: var(--bec-navy-compact); text-align: center; font: 500 44px/1.2 var(--bec-font);
  }
  /* Gen's styled leaf wrapper has no block marker; old leaf font tokens must
     inherit the independently authored heading zone's responsive typography. */
  :scope > .hoba-freeform > .hoba-freeform > :is(header, div:has(> header), [data-block="core.header"], [data-block-type="core.header"]) {
    font: inherit !important; color: inherit; text-align: inherit; min-width: 0; max-width: 100%;
  }
  :scope [data-carousel] { display: block; width: 100%; max-width: 100%; overflow: hidden; padding: 0; border: 0; background: none; }
  :scope .hoba-carousel__track { display: flex; align-items: stretch; gap: 18px; }
  :scope .hoba-carousel__track > * { flex: 0 0 auto; min-width: 0; }
  :scope .hoba-carousel__track > [data-block="core.slide"] > .hoba-slide:empty { display: none; }
  :scope .hoba-carousel__dots { display: flex; justify-content: center; gap: 14px; margin: 24px 0 0; }
  :scope .hoba-carousel__dot { width: 10px; height: 10px; min-width: 10px; min-height: 10px; padding: 0; border: 0; border-radius: 50%; background: #bcbcbc; }
  :scope .hoba-carousel__dot--active { background: var(--bec-dot-active); }
  :scope a:focus-visible, :scope button:focus-visible { outline: 2px solid var(--bec-navy-compact); outline-offset: 3px; }
  :scope a.button { border: 0; box-shadow: none; border-radius: 0; text-decoration: none; text-transform: none; letter-spacing: normal; }

  :scope:nth-child(11) .hoba-carousel__track { gap: 60px; }
  :scope:nth-child(11) .hoba-carousel__track > * { width: 320px !important; text-align: center; background: var(--hoba-surface); padding: 0; gap: 0; }
  :scope:nth-child(11) .hoba-carousel__track img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; margin: 0 auto 12px; }
  :scope:nth-child(11) .hoba-carousel__track a.button { padding: 0; min-height: 0; height: auto; background: none; color: var(--bec-navy-compact); font: 600 14px/22px var(--bec-font); }
  :scope:nth-child(11) .hoba-carousel__track > * > :nth-child(2) a, :scope:nth-child(11) .hoba-carousel__track > [data-block="core.slide"] > :nth-child(3) a { color: var(--bec-link); font-size: 16px; }
  :scope:nth-child(11) blockquote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #8a8a8a; font: 400 14px/21.7px var(--bec-font); margin: 12px 0 10px; }
  :scope:nth-child(11) cite { display: none; }
  /* Plain core.button leaves render directly as a.button without a block
     marker. Target only the three provider actions, never reviewer links. */
  :scope:nth-child(11) > .hoba-freeform > .hoba-freeform:has(a[href="https://2gis.ru/kaliningrad/firm/5630028815389178"]) {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  }
  :scope:nth-child(11) > .hoba-freeform > .hoba-freeform:has(a[href="https://2gis.ru/kaliningrad/firm/5630028815389178"]) a.button {
    display: grid; place-items: center; width: 100%; max-width: 100%; min-width: 0; min-height: 44px;
    padding: 8px 6px; background: var(--bec-yellow); color: var(--hoba-color-on-accent);
    font: 600 13px/16px var(--bec-font); text-align: center; white-space: normal; overflow-wrap: anywhere;
  }
  :scope:nth-child(11) > .hoba-freeform > .hoba-freeform:has(a[href="https://2gis.ru/kaliningrad/firm/5630028815389178"]) a.button:hover {
    background: var(--bec-navy); color: var(--hoba-color-on-primary);
  }

  :scope:nth-child(12) > .hoba-freeform > .hoba-freeform:first-child { width: min(var(--trust-w), 100%); max-width: 100vw; background: #d3d3d3; }
  :scope:nth-child(12) > .hoba-freeform > .hoba-freeform:first-child p { max-width: 940px; margin: 0 auto; padding: 42px 20px 46px 120px; color: #4f4f4f; font: 400 16px/27.2px var(--bec-font); }
  :scope:nth-child(12) .hoba-carousel__track { gap: 1px; }
  :scope:nth-child(12) .hoba-carousel__track > * { width: calc((100% - 5px) / 6) !important; padding: 1px; height: 122px; }
  :scope:nth-child(12) .hoba-slide { display: grid; place-items: center; height: 120px; padding: 0; border: 0; background: var(--hoba-surface); box-shadow: none; }
  :scope:nth-child(12) .hoba-slide img { width: 100%; max-width: 100%; height: 120px; max-height: 120px; object-fit: contain; }
  :scope:nth-child(12) .hoba-slide :is(h3, p, a) { display: none; }

  :scope:nth-child(13) > .hoba-freeform { background: var(--bec-panel-alt); }
  :scope:nth-child(13) .hoba-carousel__track > * { width: 250px !important; background: var(--hoba-surface); gap: 0; padding: 0; border: 0; border-radius: 0; }
  :scope:nth-child(13) .hoba-video { border-radius: 0; aspect-ratio: 16 / 9; }
  :scope:nth-child(13) .hoba-video__poster { object-fit: contain; background: #000; }
  :scope:nth-child(13) .hoba-video__play { width: 56px; height: 56px; }
  :scope:nth-child(13) .hoba-slide { position: relative; padding: 0; border: 0; border-radius: 0; background: var(--hoba-surface); box-shadow: none; }
  :scope:nth-child(13) .hoba-slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
  :scope:nth-child(13) .hoba-slide h3, :scope:nth-child(13) .hoba-carousel__track > * > :is([data-block="core.text"], [data-block-type="core.text"]) { padding: 14px; font: 700 16px/21px var(--bec-font); color: var(--bec-ink); }
  :scope:nth-child(13) .hoba-slide a.button { position: absolute; inset: 0; display: block; overflow: hidden; color: transparent; background: transparent; font-size: 0; }
  :scope:nth-child(13) .hoba-slide a.button::after { content: '▶'; display: grid; place-items: center; position: absolute; top: 42px; left: calc(50% - 28px); width: 56px; height: 56px; border-radius: 50%; color: var(--hoba-color-on-primary); background: rgb(0 0 0 / 55%); font: 24px/1 Arial, sans-serif; }
  :scope:nth-child(13) .hoba-carousel__nav { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
  :scope:nth-child(13) .hoba-carousel__nav button { min-width: 42px; min-height: 42px; border: 0; border-radius: 50%; background: var(--hoba-surface); color: var(--bec-navy-compact); }
  :scope:nth-child(13) .hoba-carousel__dots { margin-top: 12px; }

  :scope:nth-child(14) > .hoba-freeform > .hoba-freeform:last-child { width: min(var(--trust-w), 100%); max-width: 100vw; }
  :scope:nth-child(14) p { font: 400 14px/22px var(--bec-font); color: var(--bec-ink-muted); text-align: center; }
  :scope:nth-child(14) iframe { display: block; width: 100%; height: 420px; border: 0; }
  :scope:nth-child(15) p { color: #5b5b5b; font: 400 17px/29.75px var(--bec-font); white-space: pre-line; }
  :scope:nth-child(15) a.button { display: inline; background: none; color: var(--bec-navy-compact); padding: 0; min-height: 0; font: 500 17px/29.75px var(--bec-font); white-space: nowrap; }
  :scope:nth-child(15) a:hover { text-decoration: underline; }
  @media (max-width: 64rem) {
    :scope .hoba-freeform {
      --trust-w: var(--hoba-ff-md-w, var(--hoba-ff-w)); --trust-h: var(--hoba-ff-md-h, var(--hoba-ff-h));
      --trust-x: var(--hoba-ff-md-x, var(--hoba-ff-x)); --trust-y: var(--hoba-ff-md-y, var(--hoba-ff-y));
    }
    :scope > .hoba-freeform > .hoba-freeform:has(> header, > div > header, > :is([data-block="core.header"], [data-block-type="core.header"])) { font-size: 34px; line-height: 1.15; font-weight: 700; }
    :scope:nth-child(11) .hoba-carousel__track { gap: 0; }
    :scope:nth-child(11) .hoba-carousel__track > * { width: 340px !important; max-width: 100%; padding: 16px 14px 14px; border-radius: 8px; box-shadow: 0 3px 12px rgb(0 0 0 / 12%); }
    :scope:nth-child(11) .hoba-carousel__track img { border-radius: 50%; }
    :scope:nth-child(11) .hoba-carousel__track a.button { font-size: 16px; font-weight: 700; }
    :scope:nth-child(12) > .hoba-freeform > .hoba-freeform:first-child p { max-width: 600px; padding: 22px 20px 24px; font-size: 14px; line-height: 26.6px; text-align: justify; }
    :scope:nth-child(12) .hoba-carousel__dots { display: none; }
    :scope:nth-child(13) .hoba-carousel__track { gap: 14px; }
    :scope:nth-child(13) .hoba-carousel__track > * { width: 240px !important; }
    :scope:nth-child(13) .hoba-carousel__dots { display: none; }
    :scope:nth-child(14) > .hoba-freeform > .hoba-freeform:has(> header, > div > header, > :is([data-block="core.header"], [data-block-type="core.header"])) { font-size: 32px; }
    :scope:nth-child(15) p { font-size: 14px; line-height: 21.7px; }
  }
  @media (max-width: 40rem) {
    :scope .hoba-freeform {
      --trust-w: var(--hoba-ff-sm-w, var(--hoba-ff-md-w, var(--hoba-ff-w))); --trust-h: var(--hoba-ff-sm-h, var(--hoba-ff-md-h, var(--hoba-ff-h)));
      --trust-x: var(--hoba-ff-sm-x, var(--hoba-ff-md-x, var(--hoba-ff-x))); --trust-y: var(--hoba-ff-sm-y, var(--hoba-ff-md-y, var(--hoba-ff-y)));
    }
    :scope:nth-child(11) > .hoba-freeform > .hoba-freeform:has(a[href="https://2gis.ru/kaliningrad/firm/5630028815389178"]) { gap: 6px; }
    :scope:nth-child(11) > .hoba-freeform > .hoba-freeform:has(a[href="https://2gis.ru/kaliningrad/firm/5630028815389178"]) a.button { padding: 6px 3px; font-size: 11px; }
    :scope:nth-child(12) > .hoba-freeform > .hoba-freeform:first-child p { max-width: 360px; }
    :scope:nth-child(15) > .hoba-freeform { background: var(--bec-panel-alt); }
    :scope:nth-child(15) p { text-align: justify; hyphens: auto; }
    :scope:nth-child(15) a.button { font-size: 14px; font-weight: 600; color: #1f5fbf; }
  }
  @media (max-width: 480px) {
    :scope:nth-child(14) > .hoba-freeform > .hoba-freeform:has(> header, > div > header, > :is([data-block="core.header"], [data-block-type="core.header"])) { font-size: 26px; }
  }
  @media (max-width: 389px) {
    :scope:nth-child(13) > .hoba-freeform > .hoba-freeform:has(> header, > div > header, > :is([data-block="core.header"], [data-block-type="core.header"])) { font-size: clamp(28px, 8.75vw, 34px); }
  }
}

/* BEC Footer VK responsive bounds (outside Home #11–15).
   The plugin section is an intrinsic-sized flex item; bound it as well as
   OpenAPI's fixed-width target/wrappers so the iframe viewport really resizes. */
[data-area="Footer"] [data-plugin^="vk.community@"],
[data-area="Footer"] [data-vk-community-target],
[data-area="Footer"] [data-vk-community-target] :is(div, iframe) {
  max-width: 100% !important;
  min-width: 0;
}
/* bec-home-completion:trust:end */

/* bec-home-maps:start */
/* Home maps only. The Content query container measures available page width,
   excluding a classic scrollbar. No 100vw, negative viewport margins, or
   overflow clipping: provider controls and balloons remain usable. */
[data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]):has([data-yandex-map]) {
  container-type: inline-size;
  container-name: bec-map-page;
}

@scope ([data-area="Content"]:has(img[alt="Балтийская ЭлектроКомпания — первый экран"]) > .hoba-layout > .hoba-layout:has([data-yandex-map])) {
  :scope > .hoba-freeform {
    width: 100cqw !important;
    max-width: 100cqw;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  :scope > .hoba-freeform > .hoba-freeform:has([data-yandex-map]) {
    width: 99% !important;
    max-width: 99%;
    justify-self: start !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  :scope [data-yandex-map],
  :scope .yandex-map__canvas,
  :scope .yandex-map__canvas > iframe {
    width: 100%;
    max-width: 100%;
  }
}
/* bec-home-maps:end */
/* Footer-stage fragment. Append after existing site/home/maps CSS; no global tokens. */
/* Core's area padding sits outside the authored navy bleed, leaving a 24px
   page-surface strip below it. The recipe already owns its internal padding. */
[data-area="Footer"]:has(> .hoba-bleed.hoba-style--bg-primary) { padding-block-end: 0; }
[data-area="Footer"] .hoba-layout,
[data-area="Footer"] .hoba-layout > *,
[data-area="Footer"] form { min-width: 0; max-width: 100%; }
[data-area="Footer"] p { margin: 0; }
[data-area="Footer"] .hoba-layout--row:has(.hoba-icon-link) { flex-wrap: wrap; }
[data-area="Footer"] .hoba-layout--row:has(> div > .hoba-icon) {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: center;
}
[data-area="Footer"] .hoba-layout--row > :has(> .hoba-icon),
[data-area="Footer"] .hoba-layout--row > :has(> .hoba-icon-link) { flex-shrink: 0; }
[data-area="Footer"] .hoba-icon { width: 20px; height: 20px; fill: currentColor; }
[data-area="Footer"] .hoba-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 8px;
  color: var(--hoba-color-on-primary, #fff);
  background: rgb(255 255 255 / 12%);
}
/* gam3r.ru desktop social tile fills, retained on mobile rather than its
   neutral mobile override. WhatsApp is absent from the reference footer;
   its existing BEC destination uses the WhatsApp brand green. */
[data-area="Footer"] .hoba-icon-link[href^="https://wa.me/"] { background: #25d366; }
[data-area="Footer"] .hoba-icon-link[href^="https://t.me/"] { background: #1aa7d8; }
[data-area="Footer"] .hoba-icon-link[href^="https://vk.com/"] { background: #2a7cff; }
[data-area="Footer"] .hoba-icon-link[href^="https://www.instagram.com/"] { background: linear-gradient(135deg, #ff4d6d, #ffcc00); }
[data-area="Footer"] .hoba-icon-link[href^="https://ok.ru/"] { background: #ff8a00; }
[data-area="Footer"] .hoba-icon-link:is(:hover, :focus-visible) {
  color: var(--hoba-color-on-primary, #fff);
  box-shadow: 0 0 0 2px var(--hoba-color-on-primary, #fff);
}
[data-area="Footer"] :is(a, button, input):focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px;
}
[data-area="Footer"] a:is([href^="tel:"], [href^="mailto:"]) {
  display: inline-flex; align-items: center; min-height: 44px;
  white-space: normal; overflow-wrap: anywhere;
}
/* Native accent action already uses the site theme (#f7ce55). Native form
   submits have no variant field: apply the same action tokens only here. */
[data-area="Footer"] a[data-hoba-dialog-open] { --hoba-radius-sm: 4px; }
[data-area="Footer"] :is(form button[type="submit"], a[data-hoba-dialog-open]) {
  background: var(--hoba-color-accent, #f7ce55);
  color: var(--hoba-color-on-accent, #222);
  min-height: 44px; max-width: 100%; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 4px;
  font-weight: 700; white-space: normal; text-align: center;
}
[data-area="Footer"] :is(form button[type="submit"], a[data-hoba-dialog-open]):hover {
  background: color-mix(in srgb, var(--hoba-color-accent, #f7ce55) 90%, #000);
}
[data-area="Footer"] :is(form button[type="submit"], a[data-hoba-dialog-open]):focus-visible {
  outline-color: var(--hoba-color-on-primary, #fff);
}
[data-area="Footer"] dialog :is(form button[type="submit"], a):focus-visible {
  outline-color: var(--hoba-color-on-surface, #222);
}
/* Keep the canonical managed consent copy/link/required checkbox unchanged.
   12px / 1.4 on desktop AND mobile; no zoom restriction or muted opacity. */
[data-area="Footer"] .form-field--checkbox > label {
  display: flex; align-items: flex-start; gap: 8px; min-height: 44px;
  font-size: 12px; line-height: 1.4; color: inherit;
}
[data-area="Footer"] .form-field--checkbox input[type="checkbox"] {
  flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px;
}
[data-area="Footer"] .form-field--checkbox span {
  min-width: 0; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere;
}
[data-area="Footer"] .form-field--checkbox a,
[data-area="Footer"] a[href*="politika"] {
  color: inherit; text-decoration: underline; text-underline-offset: 2px;
}
[data-area="Footer"] input:not([type="checkbox"]):not([type="hidden"]) {
  width: 100%; min-width: 0; min-height: 44px;
}

/* BEC header controls. Append after site.css/header contact rules.
   Reference DOM: telephone, then WhatsApp / Telegram / native search in one row.
   Do not move controls with CSS order or position a second fake trigger. */
[data-area="Header"] .hoba-layout--row:has(.hoba-icon-link):has([data-hoba-search]) {
  width: max-content;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
[data-area="Header"] .hoba-layout--row:has(.hoba-icon-link):has([data-hoba-search]) > * {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
}
[data-area="Header"] .search__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
}
/* Generic anchor hover/focus ink is almost the header's background color.
   Keep the ink stable and fade only the decorative glyph (mask or SVG). */
[data-area="Header"] :is(.hoba-icon-link, .search__open) {
  color: var(--hoba-color-on-primary);
}
[data-area="Header"] :is(.hoba-icon-link, .search__open) > .hoba-icon {
  pointer-events: none;
}
[data-area="Header"] :is(.hoba-icon-link, .search__open):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  [data-area="Header"] :is(.hoba-icon-link, .search__open):hover > .hoba-icon {
    opacity: .85;
  }
}
@media (prefers-reduced-motion: no-preference) {
  [data-area="Header"] :is(.hoba-icon-link, .search__open) > .hoba-icon {
    transition: opacity 300ms ease-in-out;
  }
}

/* Match the measured bec39.com top level with the bundled Montserrat.
   Size the links, not the nav root: native toggles and nested links keep
   their own sizing and behavior. */
[data-area="Header"] .hoba-navigation__panel > .hoba-navigation__list > li > .hoba-navigation__link {
  font-family: var(--bec-font);
  font-weight: 500;
  letter-spacing: normal;
}
@media (min-width: 64.001rem) {
  [data-area="Header"] .hoba-navigation:not([data-mobile-submenus]) .hoba-navigation__panel > .hoba-navigation__list > li > .hoba-navigation__link {
    font-size: 15px;
    line-height: 60px;
    padding: 0 10px;
  }
}
/* Keep all eight labels on one row near the existing 1024px collapse point. */
@media (min-width: 64.001rem) and (max-width: 68rem) {
  [data-area="Header"] .hoba-navigation:not([data-mobile-submenus]) .hoba-navigation__panel > .hoba-navigation__list {
    column-gap: 8px;
  }
}
[data-area="Header"] .hoba-navigation[data-mobile-submenus] .hoba-navigation__panel > .hoba-navigation__list > li > .hoba-navigation__link {
  font-size: 24px;
  line-height: 29px;
  min-height: 44px;
  padding-block: 7.5px;
  overflow-wrap: break-word;
}
@media (max-width: 40rem) {
  [data-area="Header"] .hoba-layout--grid:has(> .hoba-navigation[data-mobile-submenus]) {
    grid-template-columns: minmax(0, 1fr) 64px 44px;
    column-gap: 8px;
    min-height: 96px;
    padding-block-start: max(4px, env(safe-area-inset-top, 0px));
    padding-block-end: 4px;
    padding-inline-start: max(8px, env(safe-area-inset-left, 0px));
    padding-inline-end: max(8px, env(safe-area-inset-right, 0px));
  }
  [data-area="Header"] .hoba-layout--grid:has(> .hoba-navigation[data-mobile-submenus]) > * {
    grid-column: auto;
    order: 0;
    min-width: 0;
  }
  /* Redundant desktop contact lines remain in the document and footer.
      display:none also removes their links from keyboard focus on phones. */
  [data-area="Header"] .hoba-layout--grid > .hoba-layout:has(a[href^="mailto:"]),
  [data-area="Header"] .hoba-layout:has(> [data-block="core.image"]) > :not([data-block="core.image"]),
  [data-area="Header"] .hoba-layout--row:has(> a[href^="tel:"]) > :not(a) {
    display: none;
  }
  [data-area="Header"] a[href^="tel:"] {
    min-height: 44px;
    padding: 0;
    font-size: 15px;
    line-height: 20px;
    white-space: nowrap;
  }
  [data-area="Header"] .hoba-layout:has(> [data-block="core.image"]) > [data-block="core.image"] {
    width: 64px;
    max-width: 100%;
  }
  [data-area="Header"] .hoba-navigation[data-mobile-submenus] {
    width: 44px;
    justify-self: end;
  }
  [data-area="Header"] .hoba-navigation[data-mobile-submenus] .hoba-navigation__toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }
  [data-area="Header"] :is(a[href^="tel:"], .hoba-image-link, .hoba-navigation__toggle, .hoba-icon-link, .search__open):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }
}

/* The reduced fixture menu cannot supply the full menu's intrinsic width.
   Keep the original header columns readable, without changing their spans. */
@media (min-width: 64.001rem) {
  main[data-header-area="aware"] > [data-area="Header"] .hoba-layout:has(> .hoba-navigation):has(> .hoba-layout--grid) {
    width: min(100%, 1200px);
  }
}

/* The authored intro overlaps the tail of the hero. Keep the hero's native
   action layer above that overlap; do not move or resize its Freeform boxes. */
.hoba-author--hero-wrapper { position: relative; z-index: 2; }
