
/* BORA Visual Blocks 1.4.2 — global safe scale system */
:root{
  --bvb-icon-scale-desktop:1;
  --bvb-icon-scale-mobile:1;
}

/* Visual icon scaling does not participate in document flow. */
body.bvb-managed-page .ico,
body.bvb-managed-page .social-svg,
body.bvb-managed-page .bvb-social-brand-icon,
body.bvb-managed-page img[src*="/assets/images/icons/"],
body.bvb-blog-single .ico,
body.bvb-blog-single .social-svg,
body.bvb-blog-single .bvb-social-brand-icon,
body.bvb-project-single .ico,
body.bvb-project-single .social-svg,
body.bvb-project-single .bvb-social-brand-icon,
.bora-float-contact__option>img,
.bora-float-contact__button svg,
.bora-float-contact__sound svg,
.bora-float-contact__phone-small svg{
  scale:var(--bvb-icon-scale-desktop);
  transform-origin:center center;
}

/* Icon wrappers must never push the grid when artwork becomes visually larger. */
body.bvb-managed-page .iconbox,
body.bvb-managed-page .social-link,
body.bvb-managed-page .channel,
body.bvb-managed-page .channel-wide,
body.bvb-managed-page .contact-method-card,
body.bvb-blog-single .bvb-share-button,
body.bvb-blog-single .bvb-like-button,
body.bvb-project-single .bvb-share-button,
.bora-float-contact__option,
.bora-float-contact__button{
  overflow:visible;
}

/* Font-scale guardrails: the actual scaling is applied by scale-system.js. */
body.bvb-managed-page [data-bvb-block],
body.bvb-blog-single .bvb-content-shell,
body.bvb-project-single .bvb-content-shell{
  min-width:0;
}
body.bvb-managed-page h1,
body.bvb-managed-page h2,
body.bvb-managed-page h3,
body.bvb-managed-page h4,
body.bvb-managed-page p,
body.bvb-managed-page li,
body.bvb-managed-page a,
body.bvb-managed-page button,
body.bvb-managed-page span,
body.bvb-blog-single h1,
body.bvb-blog-single h2,
body.bvb-blog-single h3,
body.bvb-blog-single p,
body.bvb-blog-single li,
body.bvb-blog-single a,
body.bvb-project-single h1,
body.bvb-project-single h2,
body.bvb-project-single h3,
body.bvb-project-single p,
body.bvb-project-single li,
body.bvb-project-single a{
  overflow-wrap:anywhere;
}

/* Keep flex/grid children shrinkable when typography is enlarged. */
body.bvb-managed-page .card,
body.bvb-managed-page .feature,
body.bvb-managed-page .service-card,
body.bvb-managed-page .project-card,
body.bvb-managed-page .payment-card,
body.bvb-managed-page .channel,
body.bvb-managed-page .channel-wide,
body.bvb-managed-page .footer-grid>div,
body.bvb-managed-page .header-inner>*,
body.bvb-managed-page .hero-copy,
body.bvb-managed-page .split>*,
body.bvb-managed-page .price-grid>*,
body.bvb-managed-page .bora-design-guarantee-panel>*,
body.bvb-blog-single .bora-blog-card,
body.bvb-project-single [class*="__content"]{
  min-width:0;
}

/* Keyboard focus: visible, brand-consistent, no layout shift. */
body.bvb-managed-page a:focus-visible,
body.bvb-managed-page button:focus-visible,
body.bvb-managed-page input:focus-visible,
body.bvb-managed-page select:focus-visible,
body.bvb-managed-page textarea:focus-visible,
body.bvb-blog-single a:focus-visible,
body.bvb-blog-single button:focus-visible,
body.bvb-project-single a:focus-visible,
body.bvb-project-single button:focus-visible,
.bora-float-contact a:focus-visible,
.bora-float-contact button:focus-visible{
  outline:2px solid #B8894A!important;
  outline-offset:3px!important;
}

/* Latest approved visual treatment: footer social actions are BORA gold + white. */
body .bora-corrected-footer .footer-socials .social-link,
body .bora-corrected-footer .footer-socials a[href*="t.me"],
body .bora-corrected-footer .footer-socials a[href*="max.ru"],
body .bora-corrected-footer .footer-socials a[href^="tel:"]{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  border:1px solid #B8894A!important;
  background:#B8894A!important;
  color:#fff!important;
}
body .bora-corrected-footer .footer-socials .social-svg{
  width:18px!important;
  height:18px!important;
  filter:brightness(0) invert(1)!important;
}

/* About: compact gold subscription buttons, white Telegram/MAX artwork. */
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide{
  grid-template-columns:minmax(260px,1fr) minmax(210px,260px) minmax(210px,260px)!important;
  justify-content:space-between!important;
  align-items:center!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .channel-wide{
  width:100%!important;
  min-height:56px!important;
  padding:9px 13px!important;
  gap:10px!important;
  border:1px solid #B8894A!important;
  background:#B8894A!important;
  color:#fff!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .channel-wide strong{
  color:#fff!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .channel-wide .social-svg{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
  filter:brightness(0) invert(1)!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .subscribe-pill{
  margin-top:4px!important;
  padding:2px 8px!important;
  border:1px solid rgba(255,255,255,.55)!important;
  border-radius:6px!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  font-size:10px!important;
}
@media(max-width:1024px){
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide{
    grid-template-columns:1fr 1fr!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide>div:first-child{
    grid-column:1/-1;
  }
}
@media(max-width:767px){
  :root{--bvb-icon-scale-desktop:var(--bvb-icon-scale-mobile)}
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide{
    grid-template-columns:1fr!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide>div:first-child{
    grid-column:auto;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .channel-wide{
    max-width:none!important;
  }
}


/* =========================================================
   v1.4.3 — BORA button geometry
   Principles: compact readable type, no forced caps, the icon+label pair
   is treated as one centered unit; text-only buttons center the label.
========================================================= */
body.bvb-managed-page .btn,
body.bvb-managed-page .channel,
body.bvb-managed-page .channel-wide,
body.bvb-managed-page .source-btn,
body.bvb-managed-page .form-button,
body.bvb-managed-page .cta-button,
body.bvb-managed-page button[type="submit"],
body.bvb-managed-page input[type="submit"],
body.bvb-blog-single .bvb-share-button,
body.bvb-blog-single .bvb-like-button,
body.bvb-project-single .bvb-share-button{
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  text-transform:none!important;
  letter-spacing:normal!important;
  font-family:Manrope,Arial,sans-serif!important;
}

/* Standard icon + text content unit. */
body.bvb-managed-page .bora-button-content{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:auto;
  text-align:left;
}
body.bvb-managed-page .bora-button-content>img,
body.bvb-managed-page .bora-button-content>svg{
  flex:0 0 auto;
}
body.bvb-managed-page .bora-button-label{
  display:block;
  line-height:1.2;
}

/* Text-only buttons: no phantom icon column, label remains optically centered. */
body.bvb-managed-page .btn:not(:has(img)):not(:has(svg)),
body.bvb-managed-page .source-btn:not(:has(img)):not(:has(svg)),
body.bvb-managed-page .form-button:not(:has(img)):not(:has(svg)),
body.bvb-managed-page .cta-button:not(:has(img)):not(:has(svg)){
  justify-content:center!important;
  text-align:center!important;
}

/* About / channels — exact approved appearance */
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide{
  grid-template-columns:minmax(0,1fr) 220px 220px!important;
  gap:12px!important;
  padding-top:0!important;
  border-top:0!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro p{
  max-width:690px!important;
  margin:6px 0 0!important;
  color:var(--muted)!important;
  font-size:16px!important;
  line-height:1.5!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button{
  width:220px!important;
  min-width:220px!important;
  height:58px!important;
  min-height:58px!important;
  padding:0 22px!important;
  border:1px solid #B8894A!important;
  border-radius:var(--bvb-button-radius)!important;
  background:#BF8C46!important;
  color:#fff!important;
  box-shadow:none!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button:hover{
  background:#AD7C3D!important;
  transform:translateY(-1px);
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .bora-button-content{
  gap:8px!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .social-svg{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  filter:none!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .bora-button-label{
  color:#fff!important;
  font-size:16px!important;
  font-weight:600!important;
  white-space:nowrap!important;
}

/* Acceptance: gift line and first channel share the same alignment grid.
   This puts the gift above the Telegram icon and starts gift text at the
   same x-position as the Telegram label. */
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-gift{
  width:calc(50% - 4px)!important;
  min-height:52px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
}
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-content-grid{
  width:250px;
  max-width:calc(100% - 20px);
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  column-gap:8px;
  align-items:center;
  margin:auto;
  text-align:left;
}
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-content-grid>img{
  width:22px!important;
  height:22px!important;
  display:block!important;
  margin:auto!important;
  object-fit:contain!important;
}
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-gift b{
  font-size:14px!important;
  line-height:1.3!important;
  font-weight:600!important;
}
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-channels .channel{
  padding:0 12px!important;
  justify-content:center!important;
}
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-channels .channel .bora-acceptance-content-grid{
  width:250px;
}
body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-channels .channel span{
  line-height:1.2!important;
}

@media(max-width:1024px){
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide{
    grid-template-columns:1fr 1fr!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro{
    grid-column:1/-1;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button{
    width:100%!important;
    min-width:0!important;
  }
}
@media(max-width:767px){
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]>.channels-wide{
    grid-template-columns:1fr!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro{
    grid-column:auto;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button{
    height:54px!important;
    min-height:54px!important;
  }

  body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-gift{
    width:100%!important;
  }
  body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-content-grid,
  body.bvb-managed-page [data-bvb-block="acceptance:professionalnaya-priemka-kvartiry-u-zastroyschik"] .bora-acceptance-channels .channel .bora-acceptance-content-grid{
    width:min(250px,calc(100% - 16px));
  }
}


/* =========================================================
   v1.4.4 — About subscribe block: lighter, centered action group
========================================================= */
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-subscribe-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:30px!important;
  align-items:center!important;
  padding-top:0!important;
  border-top:0!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro{
  min-width:0!important;
  align-self:center!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro .eyebrow{
  margin:0!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro p{
  max-width:650px!important;
  margin:6px 0 0!important;
  color:var(--muted)!important;
  font-size:15px!important;
  line-height:1.5!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  width:max-content!important;
  max-width:100%!important;
  margin:auto!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button{
  width:180px!important;
  min-width:180px!important;
  height:48px!important;
  min-height:48px!important;
  padding:0 17px!important;
  border:1px solid #B8894A!important;
  border-radius:var(--bvb-button-radius)!important;
  background:#BF8C46!important;
  color:#fff!important;
  box-shadow:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .bora-button-content{
  display:inline-flex!important;
  width:max-content!important;
  max-width:100%!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  margin:auto!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .social-svg{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  margin:0!important;
  filter:none!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .bora-button-label{
  color:#fff!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:600!important;
  white-space:nowrap!important;
  text-align:center!important;
}

body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button:hover{
  background:#AD7C3D!important;
  transform:translateY(-1px);
}

/* The text block and the button group share the same optical vertical centre. */
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro,
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-actions{
  align-self:center!important;
}

@media(max-width:960px){
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-subscribe-layout{
    grid-template-columns:1fr!important;
    gap:16px!important;
  }

  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-actions{
    justify-self:center!important;
    width:max-content!important;
  }
}

@media(max-width:480px){
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    gap:8px!important;
  }

  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button{
    width:100%!important;
    min-width:0!important;
    height:46px!important;
    min-height:46px!important;
    padding:0 12px!important;
  }

  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .bora-button-label{
    font-size:14px!important;
  }

  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-button .social-svg{
    width:17px!important;
    height:17px!important;
    flex-basis:17px!important;
  }
}


/* v1.6.0 — explicit icon component geometry wins over global icon scale */
body [data-bvb-icon-managed="1"]{
  scale:1!important;
  transform-origin:center center!important;
}


/* =========================================================
   v1.8.5 — About subscribe frame: true vertical centering
========================================================= */
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]{
  padding-top:14px!important;
  padding-bottom:14px!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-subscribe-layout{
  min-height:58px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:30px!important;
  row-gap:12px!important;
  padding:0!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro{
  height:100%!important;
  min-height:58px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  align-self:center!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro .eyebrow{
  margin:0 0 5px!important;
  line-height:1.2!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro p{
  margin:0!important;
  line-height:1.45!important;
}
body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-actions{
  min-height:58px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:center!important;
}

@media(max-width:960px){
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"]{
    padding-top:16px!important;
    padding-bottom:16px!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-subscribe-layout{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-intro{
    min-height:0!important;
  }
  body.bvb-managed-page [data-bvb-block="about:podpisyvaytes-na-nashi-kanaly"] .bora-channel-actions{
    min-height:0!important;
    justify-self:center!important;
  }
}
