/* Shared template header behavior and language controls. Loaded with runtime header. */
/* The shared footer owns open/closed state at every breakpoint. */
#mxd-footer .footer-dropdown > .footer-submenu {display:none!important;list-style:none;padding-left:1.5rem;margin-top:1rem;}
#mxd-footer .footer-dropdown.is-open > .footer-submenu {display:block!important;}
#mxd-footer .footer-dropdown > span[role="button"] {cursor:pointer;}
#mxd-footer .footer-dropdown > span[role="button"]:focus-visible {outline:2px solid currentColor;outline-offset:5px;}
#mxd-footer .footer-dropdown > span > svg {display:inline-block!important;transition:transform .2s ease;}
#mxd-footer .footer-dropdown.is-open > span > svg {transform:rotate(180deg);}
#header.mxd-header {max-width:calc(100vw - 11.6rem)}
#header .mxd-logo__image {width:13rem;height:auto}
#header .mxd-header__controls {display:flex;align-items:center;gap:1rem}
#header .bd-lang-inline,.mxd-nav__wrap .bd-lang-menu {display:inline-flex;align-items:stretch;gap:0;padding:0;overflow:hidden;border-radius:999px;height:4.6rem;line-height:1;vertical-align:middle}
#header .bd-lang-inline {border:1.5px solid rgba(255,255,255,.4);background:transparent;margin:0 1.2rem 0 0}
#header .bd-lang-inline a,.mxd-nav__wrap .bd-lang-menu a {display:inline-flex;align-items:center;justify-content:center;min-width:4.6rem;padding:0 1.6rem;font-size:1.4rem;font-weight:600;line-height:1;text-decoration:none;letter-spacing:.05em}
#header .bd-lang-inline a {color:#fff;background:transparent}
#header .bd-lang-inline a.active {color:#161616;background:#fff}
.mxd-nav__wrap .main-menu__accordion > .bd-menu-language {display:block;margin:0 0 2.4rem;padding:0;line-height:1}
.mxd-nav__wrap .main-menu__accordion > .bd-menu-language .bd-lang-menu {margin:0!important;background:#161616!important;border:1.5px solid #DAF561!important}
.mxd-nav__wrap .bd-lang-menu a {background:transparent!important;color:#fff!important}
.mxd-nav__wrap .bd-lang-menu a.active {background:#DAF561!important;color:#161616!important}
.mxd-nav__wrap .bd-lang-menu a:hover:not(.active) {background:rgba(218,245,97,.18)!important;color:#DAF561!important}
.mxd-nav__wrap .bd-lang-menu a:focus-visible,#header .bd-lang-inline a:focus-visible {outline:2px solid currentColor;outline-offset:-4px}
body:has(.mxd-nav__hamburger.nav-open) #header {visibility:hidden;pointer-events:none}
@media(min-width:768px){#header.mxd-header {max-width:calc(100vw - 19.6rem)}#header .bd-lang-inline {height:5rem}}
@media(max-width:991px){#header .mxd-header__controls > a.btn-outline,#header .mxd-header__controls > .bd-lang-inline {display:none!important}}
@media(max-width:767px){#header .mxd-logo__image {width:10rem}.mxd-nav__wrap .main-menu__accordion > .bd-menu-language {margin-bottom:2rem}}
/* A short desktop viewport must not clip the last menu destinations. */
@media(min-width:1200px) and (max-height:850px) {
  .mxd-nav__wrap .mxd-menu__inner {min-height:0;padding-bottom:7.2rem;}
  .mxd-nav__wrap .mxd-menu__left {min-height:0;overflow-y:auto;padding-top:2.4rem;}
  .mxd-nav__wrap .mxd-menu__caption {font-size:1.8rem;line-height:1.4;margin-bottom:2rem;}
  .mxd-nav__wrap .main-menu__accordion {gap:.8rem;}
  .mxd-nav__wrap .main-menu__accordion > .bd-menu-language {margin-bottom:1.2rem;}
  .mxd-nav__wrap .main-menu__link {font-size:3.4rem;height:4.2rem;line-height:4.2rem;}
  .mxd-nav__wrap .main-menu__link .btn-caption {height:4.2rem;line-height:4.2rem;}
}
@media(max-width:1199px) {
  .mxd-nav__wrap .mxd-menu__inner {min-height:0;overflow-y:auto;overscroll-behavior-y:contain;}
  .mxd-nav__wrap .mxd-menu__left {flex-shrink:0;}
}
/* Preserve icon glyphs against page-level Bulgarian text-family selectors. */
html body [class~="ph"],html body [class~="ph"]::before,html body [class~="ph"]::after{font-family:"Phosphor"!important}
html body [class~="ph-bold"],html body [class~="ph-bold"]::before,html body [class~="ph-bold"]::after{font-family:"Phosphor-Bold"!important}
html body [class~="ph-fill"],html body [class~="ph-fill"]::before,html body [class~="ph-fill"]::after{font-family:"Phosphor-Fill"!important}
html body [class~="ph-light"],html body [class~="ph-light"]::before,html body [class~="ph-light"]::after{font-family:"Phosphor-Light"!important}
html body [class~="ph-thin"],html body [class~="ph-thin"]::before,html body [class~="ph-thin"]::after{font-family:"Phosphor-Thin"!important}
html body [class~="ph-duotone"],html body [class~="ph-duotone"]::before,html body [class~="ph-duotone"]::after{font-family:"Phosphor-Duotone"!important}

/* One layout contract for email links, independent of page/language typography. */
html body a[href^="mailto:"] {
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:normal;
  white-space:normal;
}
/* Headline email: one readable line within the heading column (EN/BG). */
html body a.btn-line-headline[href^="mailto:"] {
  display:inline-flex;
  min-width:0;
  max-width:100%;
  height:auto;
  align-items:center;
  gap:.35em;
  font-size:clamp(1.6rem,3.2vw,5.2rem)!important;
  white-space:nowrap;
}
html body a.btn-line-headline[href^="mailto:"] > .btn-caption {
  display:block;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  height:auto;
  font-size:inherit!important;
  overflow-wrap:normal;
  word-break:normal;
  white-space:nowrap;
  line-height:1.15;
}
html body a.btn-line-headline[href^="mailto:"] > i {
  flex:0 0 auto;
  font-size:.85em!important;
  line-height:1;
}
/* Keep the already smaller dedicated Contact-page treatment. */
html body.bd-main-refresh[data-bd-page="contact"] a.btn-line-headline[href^="mailto:"] {
  font-size:clamp(1.6rem,2vw,2.8rem)!important;
}
html body .mxd-point-subtitle:has(> a[href^="mailto:"]) {min-width:0;max-width:100%;}
html body .mxd-point-subtitle > a[href^="mailto:"] {min-width:0;flex:1 1 auto;}
html body .mxd-point-subtitle:has(> a[href^="mailto:"]) > svg {flex:0 0 1.9rem;}

/* B2A Brand owns the third-level creative services in both site menus. */
.bd-service-parent{display:flex;align-items:center;justify-content:space-between;gap:1.2rem;}
.bd-service-parent > a{flex:1 1 auto;min-width:0;}
.bd-service-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 3.2rem;width:3.2rem;height:3.2rem;padding:.4rem;border:0;background:transparent;color:inherit;cursor:pointer;}
.bd-service-toggle svg{display:block;flex:none;width:1.6rem;height:1.6rem;transition:transform .2s ease;}
.bd-service-toggle[aria-expanded="true"] svg{transform:rotate(45deg);}
.bd-service-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
.bd-service-submenu{list-style:none;margin:1rem 0 .4rem;padding-left:1.5rem;}
.bd-service-submenu[hidden]{display:none!important;}
.bd-service-submenu:not([hidden]){display:block;}
.bd-service-submenu > li{margin:0 0 .8rem;}
.bd-service-submenu > li:last-child{margin-bottom:0;}

/* Keyboard equivalent of the existing submenu plus control. */
.bd-menu-section-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 4.4rem;width:4.4rem;height:4.4rem;border:0;padding:1.2rem;background:transparent;color:inherit;cursor:pointer;}
.bd-menu-section-toggle svg{display:block;flex:none;}
.bd-menu-section-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px;}
