/* Brand Design / Rayo main-page layer. Same grid, controls, fonts and motion stack. */
/* Keep icon glyphs out of the BG heading/body font overrides. */
body.bd-main-refresh #mxd-page-content .ph,
body.bd-main-refresh #mxd-page-content .ph::before {font-family:'Phosphor'!important;}
body.bd-main-refresh #mxd-page-content .ph-bold,
body.bd-main-refresh #mxd-page-content .ph-bold::before {font-family:'Phosphor-Bold'!important;}
body.bd-main-refresh #mxd-page-content .ph-fill,
body.bd-main-refresh #mxd-page-content .ph-fill::before {font-family:'Phosphor-Fill'!important;}
body.bd-main-refresh #mxd-page-content .ph-duotone,
body.bd-main-refresh #mxd-page-content .ph-duotone::before,
body.bd-main-refresh #mxd-page-content .ph-duotone::after {font-family:'Phosphor-Duotone'!important;}
body.bd-main-refresh #mxd-page-content .ph-light,
body.bd-main-refresh #mxd-page-content .ph-light::before {font-family:'Phosphor-Light'!important;}
body.bd-main-refresh #mxd-page-content .ph-thin,
body.bd-main-refresh #mxd-page-content .ph-thin::before {font-family:'Phosphor-Thin'!important;}
html[lang="bg"] body.bd-main-refresh #mxd-page-content p,
html[lang="bg"] body.bd-main-refresh #mxd-page-content p span,
html[lang="bg"] body.bd-main-refresh #mxd-page-content p a,
html[lang="bg"] body.bd-main-refresh #mxd-page-content label,
html[lang="bg"] body.bd-main-refresh #mxd-page-content .mxd-section-title__descr {
  font-family: 'Inter', sans-serif !important;
}
body.bd-main-refresh #mxd-page-content h1.inner-headline__title {
  font-size: clamp(42px, 5.4vw, 80px) !important;
  line-height: 1.12 !important;
  letter-spacing: -.035em !important;
  max-width: 22ch;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}
html[lang="bg"] body.bd-main-refresh #mxd-page-content h1.inner-headline__title {
  font-size: clamp(38px, 4.7vw, 68px) !important;
  letter-spacing: -.025em !important;
}
body.bd-main-refresh #mxd-page-content h2.reveal-type,
body.bd-main-refresh #mxd-page-content h2.mxd-block__manifest-title {
  font-size: clamp(32px, 3.5vw, 56px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.025em;
}
html[lang="bg"] body.bd-main-refresh #mxd-page-content h2.reveal-type,
html[lang="bg"] body.bd-main-refresh #mxd-page-content h2.mxd-block__manifest-title {
  font-size: clamp(29px, 3vw, 46px) !important;
}
body.bd-main-refresh #mxd-page-content .mxd-pinned__title {
  font-size: clamp(30px, 3.2vw, 48px) !important;
  line-height: 1.2 !important;
  max-width: 24ch;
  text-wrap: balance;
}
html[lang="bg"] body.bd-main-refresh #mxd-page-content .mxd-pinned__title {
  font-size: clamp(28px, 2.8vw, 40px) !important;
}
body.bd-main-refresh #mxd-page-content .inner-headline__text,
body.bd-main-refresh #mxd-page-content .inner-headline__paragraph {
  max-width: 66ch;
  line-height: 1.6;
}
body.bd-main-refresh .bd-page-actions {display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:28px;}
body.bd-main-refresh .bd-page-actions .btn {max-width:100%;}
body.bd-main-refresh .bd-page-actions .btn-caption {white-space:normal;text-align:left;line-height:1.3;}
body.bd-main-refresh .bd-service-entry {padding-top:0;padding-bottom:60px;}
body.bd-main-refresh .bd-service-entry .bd-entry-heading {margin-bottom:28px;font-size:clamp(26px,2.5vw,38px);line-height:1.25;}
body.bd-main-refresh .bd-entry-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}
body.bd-main-refresh .bd-entry-item {border-top:1px solid rgba(255,255,255,.35);padding:24px 0 0;min-width:0;}
body.bd-main-refresh .bd-entry-index {display:block;color:var(--accent,#DAF561);font-size:14px;margin-bottom:18px;}
body.bd-main-refresh .bd-entry-item h3 {font-size:clamp(22px,1.8vw,28px);line-height:1.3;margin:0 0 16px;text-wrap:balance;}
body.bd-main-refresh .bd-entry-item p {margin-bottom:20px;line-height:1.6;}
body.bd-main-refresh .bd-entry-item a {display:inline-flex;gap:10px;align-items:center;min-height:44px;color:var(--accent,#DAF561);text-decoration:none;}
body.bd-main-refresh .bd-entry-item a:focus-visible {outline:2px solid var(--accent,#DAF561);outline-offset:5px;}
body.bd-main-refresh .bd-start-panel {padding:clamp(28px,4vw,56px);border-radius:var(--_radius-l,28px);background:var(--base-tint,#202020);}
body.bd-main-refresh .bd-start-panel h2 {font-size:clamp(30px,3vw,46px);line-height:1.2;max-width:24ch;margin-bottom:20px;}
body.bd-main-refresh .bd-start-panel p {max-width:68ch;line-height:1.65;}
body.bd-main-refresh .bd-field-label {display:block;font-size:15px;line-height:1.45;margin:0 0 10px;color:var(--t-bright,#fff);}
body.bd-main-refresh .bd-form-intro {padding:0 15px;margin:0 0 28px;line-height:1.6;}
body.bd-main-refresh .bd-form-help {margin-top:14px;font-size:15px;line-height:1.55;max-width:66ch;}
body.bd-main-refresh .bd-form-help a {text-decoration:underline;}
body.bd-main-refresh #contact-form input[type="radio"] {width:20px;height:20px;min-width:20px;margin:0;accent-color:var(--accent,#DAF561);}
body.bd-main-refresh #contact-form label:has(input[type="radio"]) {min-height:44px;}
body.bd-main-refresh[data-bd-page="contact"] .btn-line-headline {font-size:clamp(18px,2vw,28px);max-width:100%;}
body.bd-main-refresh[data-bd-page="contact"] .btn-line-headline .btn-caption {overflow-wrap:anywhere;}
body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title h1 {font-size:clamp(46px,5vw,76px)!important;line-height:1.12!important;max-width:22ch;hyphens:none!important;word-break:normal!important;}
html[lang="bg"] body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title h1 {font-size:clamp(40px,4.4vw,84px)!important;max-width:25ch;}
body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title {padding-bottom:24px;}
body.bd-main-refresh[data-bd-page="index"] .bd-home-entry {padding:34px 0 52px;}
body.bd-main-refresh[data-bd-page="index"] .bd-home-entry .bd-page-actions {margin:0;}
body.bd-main-refresh[data-bd-page="index"] .mxd-accordion__title h3 {font-size:clamp(20px,1.8vw,28px)!important;line-height:1.35!important;}
body.bd-main-refresh[data-bd-page="index"] #homepage-faq-questions .faq-category-heading h3 {font-size:clamp(20px,1.8vw,28px)!important;line-height:1.35!important;}
body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 64px;}
body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial > section {min-width:0;border-top:1px solid rgba(255,255,255,.25);padding-top:24px;}
body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial > section:first-child {grid-column:1/-1;}
body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial h2 {font-size:clamp(28px,2.5vw,38px);line-height:1.25;margin-bottom:22px;max-width:30ch;}
body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial h3 {font-size:22px;line-height:1.4;margin:24px 0 12px;}
body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial p {line-height:1.7;margin-bottom:16px;}
@media(max-width:991px) {
  /* Mobile hero uses separate text and model rows, never overlapping grid cells. */
  body.bd-main-refresh[data-bd-page="index"] .mxd-hero-08__center,
  body.bd-main-refresh[data-bd-page="index"] .mxd-hero-08__headline {height:auto!important;min-height:0!important;}
  body.bd-main-refresh[data-bd-page="index"] .mxd-hero-08__headline > .mxd-container {display:flex!important;flex-direction:column;align-items:stretch;gap:12px;padding-top:38px;height:auto!important;}
  body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title {order:1;width:100%!important;max-width:100%;padding-bottom:0;margin:0;}
  body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__image {order:2;width:100%!important;height:clamp(280px,82vw,400px)!important;min-height:0;margin:0;align-self:center;}
  body.bd-main-refresh .bd-entry-grid {grid-template-columns:1fr;gap:28px;}
  body.bd-main-refresh .bd-service-entry {padding-bottom:44px;}
  body.bd-main-refresh #mxd-page-content h1.inner-headline__title,
  html[lang="bg"] body.bd-main-refresh #mxd-page-content h1.inner-headline__title {font-size:clamp(30px,6.3vw,46px)!important;max-width:24ch;line-height:1.16!important;}
  body.bd-main-refresh #mxd-page-content h2.reveal-type,
  body.bd-main-refresh #mxd-page-content h2.mxd-block__manifest-title,
  html[lang="bg"] body.bd-main-refresh #mxd-page-content h2.reveal-type,
  html[lang="bg"] body.bd-main-refresh #mxd-page-content h2.mxd-block__manifest-title {font-size:clamp(27px,5.5vw,36px)!important;line-height:1.25!important;}
  body.bd-main-refresh #mxd-page-content .mxd-pinned__title,
  html[lang="bg"] body.bd-main-refresh #mxd-page-content .mxd-pinned__title {font-size:clamp(26px,5vw,34px)!important;}
  body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title h1,
  html[lang="bg"] body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title h1 {font-size:clamp(30px,6.7vw,40px)!important;max-width:100%;}
  body.bd-main-refresh[data-bd-page="web"] .bd-web-editorial {grid-template-columns:1fr;gap:36px;}
  body.bd-main-refresh .bd-start-panel {border-radius:24px;}
}
@media(max-width:575px) {
  body.bd-main-refresh .bd-page-actions {flex-direction:column;align-items:stretch;gap:12px;}
  body.bd-main-refresh .bd-page-actions .btn {justify-content:space-between;min-height:52px;height:auto;padding-block:14px;}
  body.bd-main-refresh .bd-form-intro {padding-inline:0;}
  body.bd-main-refresh[data-bd-page="index"] .bd-home-entry {padding-top:20px;padding-bottom:36px;}
}

/* Homepage refinement 2026-09-08: desktop title spans the existing text/3D grid.
   Mobile rows, supporting copy and model-viewer remain unchanged. */
@media(min-width:1200px){
  html[lang="en"] body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title h1 {
    font-size:clamp(63px,5.25vw,101px)!important;
    width:100%;max-width:100%;text-wrap:balance;
  }
  html[lang="bg"] body.bd-main-refresh[data-bd-page="index"] .hero-08-headline__title h1 {
    width:100%;max-width:100%;
  }
}
/* The native testimonial buttons inherit narrow automatic dimensions from .btn.
   Keep their existing navigation offsets, motion and glyphs; size only these controls. */
body.bd-main-refresh[data-bd-page="index"] .testimonials-slider .mxd-slider-btn {
  display:inline-flex!important;align-items:center;justify-content:center;
  width:44px!important;height:44px!important;min-width:44px;min-height:44px;
  flex:0 0 44px;padding:0!important;border-radius:50%!important;box-sizing:border-box;
}
body.bd-main-refresh[data-bd-page="index"] .testimonials-slider .mxd-slider-btn::after {
  content:none!important;display:none!important;
}
body.bd-main-refresh[data-bd-page="index"] .testimonials-slider .mxd-slider-btn > i {
  display:block;font-size:20px!important;line-height:1;
}


/* Homepage contact headline only: mobile whole-word composition, EN/BG parity. */
@media (max-width: 767px) {
  body.bd-main-refresh[data-bd-page="index"] #mxd-page-content h2.bd-home-contact-heading {
    font-size: 32px !important;
    line-height: 1.18 !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
}


/* bd-contact-service-context-v1: native optional select follows the existing contact input treatment. */
body.bd-main-refresh #contact-form #bd-contact-service{display:block;width:100%;min-width:0;min-height:6rem;margin:0;padding:1.2rem 2.8rem 1.2rem .2rem;border:0;border-bottom:2px solid var(--st-medium);border-radius:0;background-color:transparent;color:var(--t-bright);font:normal var(--fw-regular) 2.2rem var(--_font-accent);line-height:1.5;appearance:auto;color-scheme:dark}
body.bd-main-refresh #contact-form #bd-contact-service:focus{border-bottom-color:var(--st-bright)}
body.bd-main-refresh #contact-form .bd-contact-service-field{margin-bottom:3rem}
