/* Local static-site polish */
html, body {
  overflow: hidden;
  height: 100%;
  touch-action: manipulation;
}

/* Main page — 90% scale via rem base + no horizontal edge line */
html.page:not(.inner_page_html) {
  font-size: 8.1px !important;
  overflow-x: hidden;
  width: 100%;
}

html.page:not(.inner_page_html) body {
  overflow-x: hidden;
  width: 100%;
}

@media screen and (min-width: 2200px) {
  html.page:not(.inner_page_html) {
    font-size: 9px !important;
  }
}

@media screen and (max-width: 1899px) {
  html.page:not(.inner_page_html) {
    font-size: 7.2px !important;
  }
}

@media screen and (max-width: 991px) {
  html.page:not(.inner_page_html),
  html.page:not(.inner_page_html) body {
    overscroll-behavior: none;
  }

  .fullpage_wrapper {
    touch-action: pan-y;
  }

  /* Inner pages — trackpad / touch scroll on phone & MacBook mobile mode */
  html.inner_page_html,
  html.inner_page_html body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Inner service pages — scrollable like live bernardgroup.us */
html.inner_page_html,
html.inner_page_html body {
  overflow: auto;
  height: auto;
  min-height: 100%;
}

html.inner_page_html .content,
html.inner_page_html .page {
  height: auto;
  min-height: 0;
}

.page, .content {
  height: 100%;
}

.fullpage_wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.fullpage_wrapper > .section {
  height: 100vh;
  min-height: 100vh;
}

/* Photo sections — blue overlay 20% darker (main page only) */
.fullpage_wrapper .blue_overlay:after {
  background: rgba(2, 38, 66, 0.97) !important;
}

.section-head .head_right_overlay {
  z-index: 2 !important;
  background-color: rgba(12, 90, 155, 0.24) !important;
}

body.head-hero-done .section-head .head_right_overlay {
  height: 100% !important;
}

body.menu_opened {
  overflow: hidden;
}

/* Logo — uniform size on every page (override main.css rem-based sizes) */
.main_logo svg {
  display: block;
  width: 179.188px !important;
  height: 48px !important;
  max-width: none !important;
  max-height: none !important;
}

.main_logo g[fill="#fff"],
.main_logo g[fill="#ffffff"],
.main_logo .to_invert,
.main_logo .to_invert * {
  transition: none !important;
}

/* GROUP wordmark — bernardgroup.us rules (fix.css + main.js) */

/* Inner pages: always black on white header */
.inner_page_header .main_logo g[fill="#fff"],
.inner_page_header .main_logo g[fill="#ffffff"],
.inner_page_header .main_logo g[fill="#fff"] path,
.inner_page_header .main_logo g[fill="#ffffff"] path {
  fill: #000 !important;
}

/* Main page light sections (body.inverted): black GROUP */
body.inverted .header:not(.inner_page_header) .main_logo g[fill="#fff"],
body.inverted .header:not(.inner_page_header) .main_logo g[fill="#ffffff"],
body.inverted .header:not(.inner_page_header) .main_logo g[fill="#fff"] path,
body.inverted .header:not(.inner_page_header) .main_logo g[fill="#ffffff"] path {
  fill: #000 !important;
}

/* Main page mobile: light header bar after leaving hero → black GROUP */
@media screen and (max-width: 991px) {
  body:not(.first_screen) .header:not(.inner_page_header) .main_logo g[fill="#fff"],
  body:not(.first_screen) .header:not(.inner_page_header) .main_logo g[fill="#ffffff"],
  body:not(.first_screen) .header:not(.inner_page_header) .main_logo g[fill="#fff"] path,
  body:not(.first_screen) .header:not(.inner_page_header) .main_logo g[fill="#ffffff"] path {
    fill: #000 !important;
  }

  .main_logo svg {
    width: 147.2px !important;
    height: 40px !important;
  }
}

@media screen and (max-width: 600px) {
  .main_logo svg {
    width: 131.2px !important;
    height: 36px !important;
  }
}

html.inner_page_html .header_inner_trigger__js span:before,
html.inner_page_html .header_inner_trigger__js span:nth-child(2):after {
  background-color: #2040a3;
}

#main_menu_block .head_top_menu_list > li > .head_menu_link {
  color: #5d5d5d;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  #main_menu_block .head_top_menu_list li > .sub-nav {
    width: 36rem;
    min-width: 36rem;
    max-width: min(36rem, calc(100vw - 4rem));
    padding: 2.8rem 3rem;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    line-height: 1.45;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav li:last-child {
    margin-bottom: 0;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav li:before {
    flex: 0 0 2.8rem;
    width: 2.8rem;
    margin-right: 0;
    color: #6287a6;
    font-size: 1.3rem;
    line-height: 1.45;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav .head_menu_link {
    flex: 1 1 auto;
    display: block;
    color: #fff !important;
    font-size: 1.3rem;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
  }
}

@media screen and (min-width: 992px) {
  html.inner_page_html .inner_page_header {
    position: relative;
    z-index: 5;
  }

  html.inner_page_html #main_menu_block {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 6;
    width: 100% !important;
    background: transparent;
    box-shadow: none;
    padding: 3rem 10px;
    overflow: visible;
    pointer-events: none;
  }

  html.inner_page_html #main_menu_block .head_top_menu_links {
    pointer-events: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav {
    width: 36rem;
    min-width: 36rem;
    max-width: min(36rem, calc(100vw - 4rem));
    padding: 2.8rem 3rem;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
  }

  #main_menu_block .head_top_menu_list li.has-sub-nav:hover > .sub-nav {
    transform: translateX(-50%);
  }
}

/* Inner pages — mobile menu like main page curtain */
/* Menu button always above intro curtain (curtain z-index: 8) */
.header_trigger,
.header_inner_trigger__js {
  z-index: 25 !important;
  pointer-events: auto !important;
}

/* Inner pages: header_line blocks clicks on children in main.css */
.inner_page_header .header_line {
  pointer-events: auto;
}

.curtain_block.wide_top_top.first_load_overlay,
.first_load_overlay {
  pointer-events: none !important;
}

/* Main page — show hamburger on tablet too */
@media screen and (max-width: 991px) {
  body.first_screen .header_trigger {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
  }
}

/* Inner pages — fullscreen menu on phone and tablet (override main.css min-width:768 block) */
@media screen and (max-width: 991px) {
  html.inner_page_html .header_inner_trigger__js {
    display: flex !important;
  }

  .inner_header_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 28, 46, 0.6);
    z-index: 15;
  }

  body.inner_menu_opened {
    overflow: hidden;
  }

  body.inner_menu_opened .inner_header_overlay {
    display: block;
  }

  body.inner_menu_opened .header_inner_trigger__js {
    z-index: 35 !important;
  }

  html.inner_page_html #main_menu_block {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-height: none !important;
    background-color: #fafafa !important;
    z-index: 20;
    padding: 64px 24px 16px !important;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: none !important;
    box-sizing: border-box;
    pointer-events: auto !important;
  }

  html.inner_page_html #main_menu_block .head_top_menu_links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: 100%;
    pointer-events: auto;
  }

  html.inner_page_html #main_menu_block .head_top_menu_list {
    display: block !important;
    flex-direction: column !important;
    width: 100%;
    text-align: left;
  }

  html.inner_page_html #main_menu_block .head_top_menu_list > li {
    display: block !important;
    text-align: left;
    margin-right: 0 !important;
    margin-bottom: 24px !important;
    width: 100%;
  }

  html.inner_page_html #main_menu_block .head_top_menu_links .head_top_menu_list > :not(:last-child) {
    margin-right: 0 !important;
  }

  body.inner_menu_opened #main_menu_block {
    display: block !important;
  }

  #main_menu_block .head_top_menu_list > li > .head_menu_link {
    font-family: Raleway-Bold, Raleway, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #232323;
    text-transform: none;
    display: inline-block;
  }

  #main_menu_block .head_top_menu_list li.has-sub-nav > a.head_menu_link {
    pointer-events: auto;
    padding-right: 36px;
    position: relative;
  }

  #main_menu_block .head_top_menu_list li.has-sub-nav > a.head_menu_link:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border: 0;
    border-right: 3px solid #232323;
    border-bottom: 3px solid #232323;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
  }

  #main_menu_block .head_top_menu_list li.has-sub-nav.active > a.head_menu_link:before {
    transform: translateY(-35%) rotate(-135deg);
  }

  #main_menu_block .head_top_menu_list li.has-sub-nav > .sub-nav {
    display: none;
    position: static;
    opacity: 1 !important;
    pointer-events: all;
    transform: none;
    left: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 1.5rem;
    padding: 2rem 2.2rem;
    box-sizing: border-box;
    background: rgba(22, 80, 128, 0.95);
  }

  #main_menu_block .head_top_menu_list li.has-sub-nav.active > .sub-nav {
    display: block;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    line-height: 1.45;
    text-align: left;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav li:last-child {
    margin-bottom: 0;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav li:before {
    flex: 0 0 2.8rem;
    width: 2.8rem;
    margin-right: 0;
    color: #6287a6;
    font-size: 1.3rem;
    line-height: 1.45;
  }

  #main_menu_block .head_top_menu_list li > .sub-nav .head_menu_link {
    flex: 1 1 auto;
    display: block;
    color: #fff !important;
    font-size: 1.3rem;
    line-height: 1.45;
    white-space: normal;
    word-break: normal;
    text-transform: none;
  }
}

/* Main page menu — never show crooked offset items when open */
body.menu_opened .header_curtain_block .main_menu_list > .gsap_el {
  left: 0 !important;
  opacity: 1 !important;
  transition: none !important;
}

/* About us & services — audit-grade typography and alignment */
.section-about .side_description_inner,
.section-services .side_description_inner {
  max-width: 72rem;
}

/* About us — premium heading (matches services, partners, news) */
.section-about .about-heading {
  position: relative;
  margin-bottom: 3.6rem;
  padding: 0.4rem 0 2.4rem 0;
  border-bottom: 1px solid rgba(4, 50, 87, 0.1);
}

/* About — inverted heading like live site: company in Montserrat, label in Raleway */
.section-about .about-heading__company {
  display: block;
  margin-bottom: 1.4rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2591eb;
}

.section-about .about-heading__label {
  font-family: Raleway, Montserrat-Bold, sans-serif;
  font-size: 4.4rem;
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #043257;
  max-width: 54rem;
}

.section-about .about-heading__label h6 {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

/* Services section — premium heading block */
.section-services .service-heading {
  position: relative;
  margin-bottom: 3.6rem;
  padding: 0.4rem 0 2.4rem 0;
  border-bottom: 1px solid rgba(4, 50, 87, 0.1);
}

.section-services .service-heading__eyebrow {
  display: block;
  margin-bottom: 1.4rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2591eb;
}

.section-services .service-heading__title {
  font-family: Raleway-Bold, Raleway, Montserrat-Bold, sans-serif;
  font-size: 4.4rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #043257;
  max-width: 54rem;
}

.section-about .side_description .simple_text.about-prose {
  padding-left: 0 !important;
}

.section-about .about-prose,
.section-services .service-prose {
  max-width: 62rem;
  padding-left: 0 !important;
  line-height: 1.72;
  color: #2a3340;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.section-about .about-prose > :not(:last-child),
.section-services .service-prose > :not(:last-child):not(.main_btn) {
  margin-bottom: 1.35rem;
}

.about-lead,
.service-lead {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #043257;
  letter-spacing: 0.01em;
}

.section-about .about-prose p,
.section-about .about-prose .about-lead,
.section-about .about-prose .about-tagline,
.section-services .service-prose p {
  margin: 0;
  max-width: 100%;
  font-family: Montserrat-Regular, Montserrat, sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: #2a3340;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.section-about .about-prose .about-lead {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.68;
  color: #043257;
}

.section-services .service-prose p {
  text-align: left;
  hyphens: none;
}

.about-points,
.service-points {
  list-style: none;
  margin: 2rem 0 2.2rem;
  padding: 0;
  border-left: 2px solid #2591eb;
  padding-left: 2.4rem;
}

.about-points li,
.service-points li {
  position: relative;
  padding-left: 0;
  margin-bottom: 1.1rem;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #3d4a59;
}

.about-points li:last-child,
.service-points li:last-child {
  margin-bottom: 0;
}

.simple_text .about-points li:before,
.simple_text .service-points li:before,
.section-about .about-points li:before,
.section-services .service-points li:before {
  display: none !important;
  content: none !important;
}

.section-services .side_descr_btn {
  margin-top: 2.4rem;
  padding-left: 0;
}

/* Partners, news, contacts — section intros */
.section-intro {
  max-width: 62rem;
  margin: 0 0 2.4rem;
  font-size: 1.25rem;
  line-height: 1.75;
  color: #3d4a59;
  text-align: left;
}

/* News — premium heading (matches partners) */
.section-articles .news-heading {
  position: relative;
  margin-bottom: 0;
  padding: 0.4rem 0 2.4rem 0;
}

.section-articles .news-heading__eyebrow {
  display: block;
  margin-bottom: 1.4rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2591eb;
}

.section-articles .news-heading__title {
  font-family: Raleway-Bold, Raleway, Montserrat-Bold, sans-serif;
  font-size: 4.4rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #043257;
}

.section-articles .sliders_heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-articles .sliders_heading_right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Partners — premium heading (matches services) */
.section-partners .partners-heading {
  position: relative;
  margin-bottom: 0;
  padding: 0.4rem 0 2.4rem 2.8rem;
}

.section-partners .partners-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  bottom: 2.6rem;
  width: 3px;
  background: linear-gradient(180deg, #2591eb 0%, #043257 100%);
}

.section-partners .partners-heading__eyebrow {
  display: block;
  margin-bottom: 1.4rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2591eb;
}

.section-partners .partners-heading__title {
  font-family: Raleway-Bold, Raleway, Montserrat-Bold, sans-serif;
  font-size: 4.4rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #043257;
}

.section-partners .sliders_heading {
  margin-bottom: 2rem;
  align-items: flex-end;
}

.section-partners .partners_slider {
  margin-top: 0;
}

.section-partners .partners_slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  padding: 1.6rem 2rem;
  background: #fff;
  border: 1px solid rgba(32, 64, 163, 0.1);
  box-shadow: 0 2px 14px rgba(10, 22, 40, 0.05);
}

.section-partners .partners_slide img {
  max-height: 4.2rem;
  width: auto;
  opacity: 0.88;
  filter: grayscale(15%);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.section-partners .partners_slide:hover img {
  opacity: 1;
  filter: none;
}

/* News cards — bernardgroup.ch: main.css layout + equal heights + more_link line */
.section-articles .articles_slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

.section-articles .articles_slider .slick-slide {
  display: flex !important;
  height: auto;
}

.section-articles .articles_slider .slick-slide > div {
  display: flex;
  width: 100%;
  height: 100%;
}

.section-articles .articles_slide {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.section-articles .articles_slide__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.section-articles .articles_slide__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
}

.section-articles .articles_slide__description {
  display: none !important;
}

/* more_link — bernardgroup.ch: MORE + line (inline-flex so line is never clipped) */
.section-articles .articles_slide__content .more_link {
  display: inline-flex !important;
  align-items: center;
  gap: 1.5rem;
  margin-top: auto;
  flex-shrink: 0;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.section-articles .articles_slide__content .more_link::after {
  content: "";
  display: block !important;
  position: static !important;
  transform: none !important;
  width: 6rem;
  height: 1px;
  background-color: #dbdbdb;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

.section-articles .articles_slide__content .more_link:hover {
  color: #2591eb;
}

.section-articles .articles_slide__content .more_link:hover::after {
  background-color: #2591eb;
}

/* Contacts — premium heading and layout */
.section-contacts .contacts-heading {
  position: relative;
  margin-bottom: 3rem;
  padding: 0.4rem 0 0 0;
}

.section-contacts .contacts-heading__eyebrow {
  display: block;
  margin-bottom: 1.4rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2591eb;
}

.section-contacts .contacts-heading__title {
  font-family: Raleway-Bold, Raleway, Montserrat-Bold, sans-serif;
  font-size: 4.4rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #043257;
}

.section-contacts .contact-cta-inner {
  width: 100%;
  max-width: 56rem;
}

.section-contacts .cta_side .main_btn {
  color: #000;
}

.section-contacts .cta_side .main_btn .main_btn_inner {
  color: inherit;
}

.section-contacts .cta_side .main_btn:before {
  display: none;
}

.section-about .side_descr_btn .main_btn {
  color: #000;
}

.section-about .side_descr_btn .main_btn .main_btn_inner {
  color: inherit;
}

.section-contacts .contact-form-pro .form_element input,
.section-contacts .contact-form-pro .form_element textarea {
  font-family: Montserrat-Regular, sans-serif;
  font-size: 1.15rem;
  border-color: rgba(32, 64, 163, 0.18);
}

.section-contacts .contact-form-pro .mfv_checker {
  margin-top: 1.6rem;
}

.section-contacts .contact-form-pro .mf4v_checker_text {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #3d4a59;
}

.section-contacts .contact-form-pro .mf4v_checker_text a {
  color: #2591eb;
  text-decoration: underline;
}

/* Contact blocks — bernardgroup.ch alignment & typography */
.section-contacts .contact_blocks_side.dark_bg {
  align-items: center;
}

.section-contacts .contact_blocks_side.dark_bg .contact_side_list {
  width: 100%;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-contacts .contact_blocks_side.dark_bg .contact_side_list > li:not(:last-child) {
  margin-bottom: 5.5rem;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block {
  display: flex;
  align-items: center;
  width: 100%;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block > :not(:last-child) {
  margin-right: 4rem;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block__ico {
  flex-shrink: 0;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block__content {
  flex: 1;
  min-width: 0;
  text-align: left;
  color: #c6d0d8;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.5rem;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block__title {
  margin: 0 0 1rem;
  color: #c6d0d8;
  font-size: 1.5rem;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block__text {
  color: #fff;
  font-family: Montserrat-SemiBold, Montserrat-Bold, sans-serif;
  font-size: 2.2rem;
  line-height: normal;
  max-width: none;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block__text a {
  color: inherit;
  text-decoration: none;
}

.section-contacts .contact_blocks_side.dark_bg .contact_block__text a:hover {
  color: #2591eb;
}

.section-contacts .contact_blocks_side.dark_bg .contact-block--address .contact_block__text {
  font-size: 1.95rem;
  line-height: 1.32;
}

/* Slogan — institutional statement block */
.section-slogan .slogan_frame_content > :not(:last-child) {
  margin-bottom: 0 !important;
}

.section-slogan .slogan-pro__layout {
  position: relative;
  min-height: 38rem;
}

.section-slogan .slogan_frame {
  position: relative;
  z-index: 2;
  max-width: 62%;
  min-height: 0;
}

.section-slogan .slogan-pro__figure {
  position: absolute;
  right: 20%;
  bottom: 0;
  z-index: 3;
  margin: 0;
  pointer-events: none;
}

.section-slogan .slogan-pro__portrait {
  display: block;
  max-height: min(56rem, 88vh);
  width: auto;
  height: auto;
  object-fit: contain;
}

.section-slogan .slogan-pro__inner {
  max-width: 72rem;
  padding: 1rem 0;
}

.section-slogan .slogan-pro__eyebrow {
  margin: 0 0 2.2rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.section-slogan .slogan-pro__statement {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: Raleway-Bold, Raleway, Montserrat-Bold, sans-serif;
  font-size: 4.2rem;
  font-style: normal !important;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.012em;
  color: #fff;
}

.section-slogan .slogan-pro__statement em {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.72em;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: #9fd4fa;
}

.section-slogan .slogan-pro__attribution {
  margin-top: 3.8rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.section-slogan .slogan-pro__company {
  display: inline-block;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2591eb;
}

.section-slogan .slogan_frame_bg {
  width: 68%;
  background: linear-gradient(
    to left,
    rgba(4, 50, 87, 0.94) 0%,
    rgba(4, 50, 87, 0.72) 45%,
    rgba(4, 50, 87, 0) 100%
  ) !important;
}

/* Inner service detail pages — theme sizes (bernardgroup.ch / main.css) */
.inner_page_sections .section-service-info .screen_content > :not(:last-child) {
  margin-bottom: 10rem;
}

.inner_page_sections .service_info_head_sides {
  gap: 4rem;
}

.inner_page_sections .service_info_head_side.left {
  padding-right: 5rem;
}

.inner_page_sections .service_info_text_sides {
  gap: 6rem;
}

.inner_page_sections .service_info_text_sides > * {
  width: calc(50% - 3rem);
  flex: 0 0 calc(50% - 3rem);
  max-width: calc(50% - 3rem);
}

.inner_page_sections .service_info_image_sides {
  gap: 8rem;
}

.inner_page_sections .service_info_image_side.left > :not(:last-child) {
  margin-bottom: 8rem;
}

.inner_page_sections .service_info_quote_block:nth-child(odd) > :not(:last-child) {
  margin-left: 12rem !important;
  margin-right: 0 !important;
}

.inner_page_sections .service_info_quote_block:nth-child(even) > :not(:last-child) {
  margin-right: 12rem !important;
  margin-left: 0 !important;
}

.inner_page_sections .service_info_text_side.left > h2,
.inner_page_sections .service_info_text_side.left .service-side-heading {
  font: inherit;
  color: inherit;
  margin: 0;
}

.inner_page_sections .service_info_quotes_head h3 {
  font: inherit;
  color: inherit;
  margin: 0;
  font-weight: 400;
}

.inner_page_sections .service_info_head_frame_title {
  color: #ffffff;
}

.inner_page_sections .service_info_head_frame .service-frame-prose,
.inner_page_sections .service_info_head_frame .service-frame-prose p,
.inner_page_sections .service_info_head_frame .service-frame-prose .service-frame-lead,
.inner_page_sections .service_info_head_frame .service-frame-tagline,
.inner_page_sections .service_info_head_frame .service-frame-tagline strong {
  color: #ffffff;
}

.inner_page_sections .service_info_head_frame .service-frame-prose .service-points {
  border-left-color: rgba(255, 255, 255, 0.55);
}

.inner_page_sections .service_info_head_frame .service-frame-prose .service-points li {
  color: #ffffff;
}

.inner_page_sections .service_info_head_frame .service-frame-tagline {
  margin-top: 2.4rem;
  margin-bottom: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.inner_page_sections .service-points {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0 0 0 2.4rem;
  border-left: 2px solid #2591eb;
}

.inner_page_sections .service-points li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.inner_page_sections .service-points li:last-child {
  margin-bottom: 0;
}

.inner_page_sections .simple_text .service-points li:before,
.inner_page_sections .service-frame-prose .service-points li:before {
  display: none !important;
  content: none !important;
}

.inner_page_sections .simple_text span[style],
.inner_page_sections .simple_text h1 span {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

.inner_page_sections .service_info_disclaimer {
  margin-top: 3.6rem;
}

.inner_page_sections .service-disclaimer {
  margin: 0;
  padding: 1.6rem 2rem;
  background: #f4f7fb;
  border-left: 3px solid #2040a3;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #043257;
}

.inner_page_sections .service-rules-table {
  width: 100%;
  margin: 1.4rem 0 1.6rem;
  border-collapse: collapse;
  font-size: 1.05rem;
  line-height: 1.55;
}

.inner_page_sections .service-rules-table th,
.inner_page_sections .service-rules-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(4, 50, 87, 0.14);
}

.inner_page_sections .service-rules-table th {
  font-family: Montserrat-Medium, Montserrat-Bold, sans-serif;
  font-weight: 600;
  color: #043257;
  border-bottom: 2px solid rgba(37, 145, 235, 0.45);
}

.inner_page_sections .service-rules-table td:first-child {
  width: 42%;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  color: #043257;
}

.inner_page_sections .service-disclaimer strong {
  font-family: Montserrat-Medium, Montserrat-Bold, sans-serif;
  font-weight: 600;
  color: #043257;
}

/* The Team — zigzag layout without photo (matches bernardgroup.ch rhythm) */
.team_blocks .service_info_quote_block.team_block--no-photo {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  width: 100%;
}

/* 01, 03, 05 — text column on the left */
.team_blocks .service_info_quote_block.team_block--no-photo:nth-child(odd) {
  justify-content: flex-start;
  padding-left: 5%;
}

.team_blocks .service_info_quote_block.team_block--no-photo:nth-child(odd) .service_info_quote_content {
  margin-right: auto;
  margin-left: 0;
  width: 100%;
  max-width: 46rem;
}

/* 02, 04, 06 — text column on the right */
.team_blocks .service_info_quote_block.team_block--no-photo:nth-child(even) {
  justify-content: flex-end;
  padding-right: 5%;
}

.team_blocks .service_info_quote_block.team_block--no-photo:nth-child(even) .service_info_quote_content {
  margin-left: auto;
  margin-right: 0;
  width: 100%;
  max-width: 46rem;
}

.team_blocks .service_info_quote_block.team_block--no-photo > :not(:last-child) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
}

@media screen and (max-width: 991px) {
  .team_blocks .service_info_quote_block.team_block--no-photo:nth-child(odd),
  .team_blocks .service_info_quote_block.team_block--no-photo:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .team_blocks .service_info_quote_block.team_block--no-photo:nth-child(odd) .service_info_quote_content,
  .team_blocks .service_info_quote_block.team_block--no-photo:nth-child(even) .service_info_quote_content {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
}

/* The Team — override main.css text-align:center; justify all prose */
.inner_page_sections .top_offseted_frame {
  text-align: left;
}

.inner_page_sections .tof_head,
.inner_page_sections .tof_head_subtitle,
.inner_page_sections .tof_head_title {
  text-align: left !important;
}

.inner_page_sections .service_info_quote_content {
  text-align: left !important;
}

.inner_page_sections .service_info_quote_head,
.inner_page_sections .service_info_quote_num,
.inner_page_sections .service_info_quote_title,
.inner_page_sections .service_info_quote_subtitle,
.inner_page_sections .team_blocks .more_link {
  text-align: left !important;
}

.inner_page_sections .team_blocks .service_info_quote_text,
.inner_page_sections .team_blocks .service_info_quote_text p {
  text-align: justify !important;
  text-align-last: left;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-spacing: normal;
}

/* The Team — intro prose aligned like About us */
.inner_page_sections .tof_content.team-prose {
  padding-left: 0 !important;
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.inner_page_sections .tof_content.team-prose > :not(:last-child) {
  margin-bottom: 1.35rem;
}

.inner_page_sections .tof_content.team-prose p {
  margin: 0;
  font-family: Montserrat-Regular, Montserrat, sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: #2a3340;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Inner service pages — prose aligned like About us */
.inner_page_sections .service_info_text_side.right .simple_text,
.inner_page_sections .service_info_head_frame .service-frame-prose {
  padding-left: 0 !important;
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.inner_page_sections .service_info_text_side.right .simple_text > :not(:last-child),
.inner_page_sections .service_info_head_frame .service-frame-prose > :not(:last-child) {
  margin-bottom: 1.35rem;
}

.inner_page_sections .service_info_text_side.right .simple_text p,
.inner_page_sections .service_info_head_frame .service-frame-prose p,
.inner_page_sections .service_info_head_frame .service-frame-prose .service-frame-lead {
  margin: 0;
  max-width: 100%;
  font-family: Montserrat-Regular, Montserrat, sans-serif;
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.01em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.inner_page_sections .service_info_head_frame .service-frame-prose .service-frame-lead {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.68;
}

.inner_page_sections .service_info_quote_text p {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.72;
  letter-spacing: 0.01em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Inner pages — all prose justified (flush both edges) */
.inner_page_sections .simple_text,
.inner_page_sections .service-frame-prose,
.inner_page_sections .service_info_quote_text,
.inner_page_sections .service-disclaimer,
.inner_page_sections .tof_content.team-prose {
  text-align: justify !important;
  text-align-last: left;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-spacing: normal;
}

.inner_page_sections .simple_text p,
.inner_page_sections .simple_text li,
.inner_page_sections .service-frame-prose p,
.inner_page_sections .service-frame-prose .service-frame-lead,
.inner_page_sections .service-frame-prose .service-frame-tagline,
.inner_page_sections .service_info_quote_text p,
.inner_page_sections .service-disclaimer,
.inner_page_sections .service-disclaimer p,
.inner_page_sections .service-points li,
.inner_page_sections .tof_content.team-prose p {
  text-align: justify !important;
  text-align-last: left;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-spacing: normal;
}

.inner_page_sections .service_info_main_title,
.inner_page_sections .service_info_main_title h1,
.inner_page_sections .service_info_head_frame_title,
.inner_page_sections .service_info_text_side.left h2,
.inner_page_sections .service_info_quotes_head,
.inner_page_sections .service_info_quotes_head h3 {
  text-align: left !important;
}

.inner_page_sections .service-rules-table {
  font-size: 1.15rem;
}

.section-about .about-disclaimer {
  margin-top: 2.4rem !important;
  padding: 1.6rem 2rem;
  background: #f4f7fb;
  border-left: 3px solid #2040a3;
  font-size: 1.2rem;
  line-height: 1.65;
  color: #043257;
}

.section-about .about-disclaimer strong {
  font-family: Montserrat-Medium, Montserrat-Bold, sans-serif;
  font-weight: 600;
  color: #043257;
}

.section-about .about-tagline {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #043257;
  margin-top: 0.2rem !important;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(4, 50, 87, 0.12);
}

@media screen and (max-width: 991px) {
  .section-about .about-prose,
  .section-about .about-prose p,
  .section-about .side_description_inner,
  .section-services .service-prose,
  .section-services .service-prose p,
  .section-services .side_description_inner {
    max-width: 100%;
  }

  .section-services .service-heading__title {
    font-size: 3.2rem;
    line-height: 1.18;
  }

  .section-services .service-heading__eyebrow {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .section-services .service-heading {
    padding-left: 0;
    margin-bottom: 2.8rem;
  }

  .section-services .side_description_inner {
    margin-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
  }

  .section-services .service-heading,
  .section-services .service-heading__eyebrow,
  .section-services .service-heading__title {
    text-align: left !important;
    text-align-last: left;
  }

  .section-services .service-prose,
  .section-services .service-prose p,
  .section-services .service-prose .service-lead {
    text-align: justify !important;
    text-align-last: left;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    word-spacing: normal;
    line-height: 1.68;
  }

  .section-services .service-prose .service-lead {
    font-size: 1.2rem;
    line-height: 1.65;
  }

  .section-services .service-points {
    padding-left: 1.8rem;
    margin-left: 0;
  }

  .section-services .service-points li {
    text-align: justify;
    text-align-last: left;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    line-height: 1.65;
    word-spacing: normal;
  }

  .section-about .about-heading__label {
    font-size: 3.2rem;
    line-height: 1.18;
  }

  .section-about .about-heading__company {
    font-size: 1.5rem;
    letter-spacing: 0.06em;
  }

  .section-about .about-heading {
    padding-left: 0;
    margin-bottom: 2.8rem;
  }

  .section-about .side_description_inner {
    margin-left: 5%;
    padding-right: 5%;
    box-sizing: border-box;
  }

  .section-about .about-heading,
  .section-about .about-heading__company,
  .section-about .about-heading__label,
  .section-about .about-heading__label h6 {
    text-align: left !important;
    text-align-last: left;
  }

  .section-about .about-prose,
  .section-about .about-prose p,
  .section-about .about-prose .about-lead,
  .section-about .about-prose .about-tagline {
    text-align: justify !important;
    text-align-last: left;
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    word-spacing: normal;
  }

  .section-slogan .slogan-pro__statement {
    font-size: 2.6rem;
    line-height: 1.42;
  }

  .section-slogan .slogan-pro__statement em {
    font-size: 0.72em;
    margin-top: 1rem;
  }

  .section-slogan .slogan-pro__inner {
    max-width: 100%;
    margin-left: 10%;
  }

  .section-slogan .slogan-pro__layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .section-slogan .slogan_frame {
    max-width: 100%;
  }

  .section-slogan .slogan-pro__figure {
    position: relative;
    right: auto;
    align-self: flex-end;
    margin: -2rem 0 0 auto;
  }

  .section-slogan .slogan-pro__portrait {
    max-height: 24rem;
    transform: translateY(-15%);
  }

  .section-slogan .slogan-pro__attribution {
    margin-top: 2.6rem;
    padding-top: 1.8rem;
  }

  .section-partners .partners-heading__title {
    font-size: 3.2rem;
    line-height: 1.18;
  }

  .section-partners .partners-heading {
    padding-left: 2.2rem;
  }

  .section-articles .news-heading__title {
    font-size: 3.2rem;
    line-height: 1.18;
  }

  .section-articles .news-heading {
    padding-left: 0;
  }

  .section-articles .articles_slide__img {
    height: 24rem;
  }

  .section-articles .articles_slide__title {
    font-size: 1.8rem;
  }

  .section-contacts .contacts-heading__title {
    font-size: 3.2rem;
    line-height: 1.18;
  }

  .section-contacts .contacts-heading {
    padding-left: 0;
    margin-bottom: 2.4rem;
  }

  .section-contacts .contact_blocks_side.dark_bg .contact_side_list > li:not(:last-child) {
    margin-bottom: 4rem;
  }

  .section-contacts .contact_blocks_side.dark_bg .contact_block__text {
    font-size: 1.7rem;
  }

  .section-contacts .contact_blocks_side.dark_bg .contact-block--address .contact_block__text {
    font-size: 1.55rem;
  }

  .section-contacts .contact_blocks_side.dark_bg .contact_block > :not(:last-child) {
    margin-right: 2.4rem;
  }

  .about-lead,
  .service-lead {
    font-size: 1.3rem;
  }

  .section-about .about-prose p,
  .section-about .about-prose .about-lead,
  .section-about .about-prose .about-tagline {
    font-size: 1.18rem;
    line-height: 1.68;
  }

  .section-about .about-prose .about-lead {
    font-size: 1.2rem;
  }

  .about-points li,
  .service-points li {
    font-size: 1.15rem;
  }

  .section-intro {
    font-size: 1.15rem;
  }

  .inner_page_sections .section-service-info .screen_content > :not(:last-child) {
    margin-bottom: 6rem;
  }

  .inner_page_sections .service_info_head_sides {
    gap: 2rem;
  }

  .inner_page_sections .service_info_text_sides {
    gap: 3rem;
  }

  .inner_page_sections .service_info_text_sides > * {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .inner_page_sections .service_info_image_sides {
    gap: 4rem;
  }

  .inner_page_sections .service_info_image_side.left > :not(:last-child) {
    margin-bottom: 6rem;
  }

  .inner_page_sections .service_info_quote_block:nth-child(odd) > :not(:last-child),
  .inner_page_sections .service_info_quote_block:nth-child(even) > :not(:last-child) {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 3rem !important;
  }

  .inner_page_sections .screen_content.side_lines {
    padding-left: 5% !important;
    padding-right: 5% !important;
    box-sizing: border-box;
  }

  .inner_page_sections .service_info_head_side.left {
    padding-right: 0;
  }
}

/* Head screen — premium ambient grid */
.section-head .head_ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.section-head .head_ambient_grid {
  position: absolute;
  width: 160%;
  height: 160%;
  left: -30%;
  top: -30%;
  opacity: 0;
  background-image:
    linear-gradient(rgba(37, 145, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 145, 235, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: rotate(-10deg) translateZ(0);
  will-change: transform;
}

.section-head .head_ambient--live .head_ambient_grid {
  animation: headGridDrift 28s ease-in-out infinite;
}

.section-head .head_ambient_line {
  position: absolute;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(37, 145, 235, 0.45), transparent);
  transform: scaleX(0);
  transform-origin: left center;
}

.section-head .head_ambient_line--a {
  width: 36%;
  top: 22%;
  left: 4%;
  z-index: 0;
}

.section-head .head_ambient_line--b {
  width: 24%;
  bottom: 18%;
  right: 6%;
  transform-origin: right center;
  z-index: 0;
}

@keyframes headGridDrift {
  0%, 100% { transform: rotate(-10deg) translate(0, 0); }
  50% { transform: rotate(-10deg) translate(14px, 10px); }
}

/* Hero intro — hidden until GSAP reveal (inline GSAP opacity overrides during anim) */
body.head-intro-pending .section-head .head_subtitle,
body.head-intro-pending .section-head .head_title,
body.head-intro-pending .section-head .head_title_description,
body.head-intro-pending .section-head .head_bottom,
body.head-intro-pending .section-head .head-heading-pro__rule {
  opacity: 0;
}

.section-head .head-heading-pro__rule {
  transform: scaleX(0);
  transform-origin: left center;
}

body.head-hero-done .section-head .head_subtitle,
body.head-hero-done .section-head .head_title,
body.head-hero-done .section-head .head_title_description,
body.head-hero-done .section-head .head_bottom,
body.head-hero-done .section-head .head-heading-pro__cta {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

body.head-hero-done .section-head .head-heading-pro__rule {
  opacity: 1 !important;
  transform: scaleX(1) !important;
}

body.head-hero-done .section-head .head-heading-card__panel {
  opacity: 1 !important;
}

body.head-hero-done .section-head .head_navigation,
body.head-hero-done .section-head .head_top_menu,
body.head-hero-done .section-head .head_nav_link {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.section-head {
  overflow: visible;
}

.section-head .section_in_container {
  position: relative;
  z-index: 3;
}

/* Head hero — Swiss / institutional private-banking typography */
.section-head .head-heading-pro {
  width: 100%;
  max-width: 82rem;
  text-align: left;
}

.section-head .head-heading-pro__frame {
  position: relative;
  padding: 2.8rem 0 3rem 3.4rem;
  border-left: none;
  isolation: isolate;
}

.section-head .head-heading-pro__frame::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(37, 145, 235, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0.1) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.section-head .head-heading-pro__frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: -8rem;
  top: -0.4rem;
  bottom: -0.4rem;
  background: linear-gradient(
    90deg,
    rgba(4, 50, 87, 0.42) 0%,
    rgba(4, 50, 87, 0.18) 55%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

.section-head .head-heading-pro__frame > * {
  position: relative;
  z-index: 1;
}

.section-head .head-heading-pro__institution {
  margin-bottom: 2rem !important;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(158, 198, 230, 0.95);
}

.section-head .head-heading-pro__rule {
  width: 5.6rem;
  height: 1px;
  margin-bottom: 2.6rem;
  background: linear-gradient(
    90deg,
    rgba(37, 145, 235, 0.95) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

.section-head .head-heading-pro__statement {
  margin-bottom: 2.4rem !important;
  font-family: Raleway, Montserrat-Bold, sans-serif;
  font-size: 8.2rem;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: #ffffff;
  overflow: visible;
  word-break: normal;
}

.section-head .head-heading-pro__statement em {
  font-style: normal;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.48);
}

.section-head .head-heading-pro__support {
  display: block !important;
  max-width: none;
  white-space: nowrap;
  font-family: Montserrat-Regular, Montserrat-Medium, sans-serif;
  font-size: clamp(0.55rem, 1.48vw, 1.38rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.76);
}

.section-head .head-heading-pro__cta {
  margin-top: 3.4rem;
  text-align: left;
}

.section-head .head-heading-pro__btn {
  min-width: 21rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-head .head-heading-pro__btn:before {
  display: none;
}

.section-head .head-heading-pro__btn .main_btn_inner {
  height: 5.4rem;
  padding-left: 2.6rem;
  padding-right: 2.6rem;
  color: inherit;
}

.section-head .head-heading-pro__btn:hover {
  background: rgba(37, 145, 235, 0.28);
  border-color: #2591eb;
  color: #ffffff;
}

@media screen and (max-width: 1399px) {
  .section-head .head-heading-pro__statement {
    font-size: 6.5rem;
    line-height: 1.1;
  }

  .section-head .head-heading-pro__statement.head-heading-card__headline {
    font-size: clamp(3.11rem, 5.09vw, 6.88rem) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
}

@media screen and (max-width: 991px) {
  .section-head .head-heading-pro__frame {
    padding-left: 2.4rem;
  }

  .section-head .head-heading-pro__statement {
    font-size: 3.8rem;
    line-height: 1.14;
    margin-bottom: 2rem !important;
  }

  .section-head .head-heading-pro__statement.head-heading-card__headline {
    font-size: clamp(2.78rem, 7.67vw, 4.5rem) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .section-head .head-heading-pro__institution {
    font-size: 0.88rem;
    letter-spacing: 0.28em;
    margin-bottom: 1.6rem !important;
  }

  .section-head .head-heading-pro__rule {
    width: 4rem;
    margin-bottom: 2rem;
  }

  .section-head .head-heading-pro__frame::after {
    right: -4rem;
  }

  .section-head .head-heading-pro__cta {
    margin-top: 2.6rem;
  }

  .section-head .head-heading-pro__btn {
    min-width: 18rem;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }

  .section-head .head-heading-pro__btn .main_btn_inner {
    height: 4.8rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .section-head .head-heading-pro__statement {
    font-size: 2.9rem;
  }

  .section-head .head-heading-pro__statement.head-heading-card__headline {
    font-size: clamp(2.45rem, 11.64vw, 3.11rem) !important;
  }

  .section-head .head-heading-pro__frame {
    padding-left: 1.8rem;
  }

  .section-head .head-heading-pro__frame::after {
    right: -2rem;
  }
}

/* Hero — card version (left text, right edge dissolves into page) */
.section-head {
  overflow-x: clip;
  overflow-y: visible;
}

.section-head .section_content {
  overflow: visible;
}

.section-head .head_container {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  max-width: 122.5rem;
  margin: 0 auto;
  overflow: visible;
}

.section-head .head-heading-card.head-heading-pro {
  width: calc(100% + max(0px, 50vw - 50%));
  max-width: calc(100vw - 1px);
  margin: 0;
  text-align: left;
  box-sizing: border-box;
}

.section-head .head-heading-pro__frame.head-heading-card__panel,
.section-head .head-heading-card__panel {
  position: relative;
  width: 100%;
  padding: 5rem 6.6rem 5rem 6.6rem !important;
  border-radius: 22px 0 0 22px;
  border: none;
  background:
    linear-gradient(
      90deg,
      rgba(10, 38, 68, 0.24) 0%,
      rgba(5, 24, 46, 0.16) 36%,
      rgba(4, 18, 36, 0.07) 58%,
      rgba(4, 18, 36, 0.02) 72%,
      transparent 86%
    );
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.92) 72%,
    rgba(0, 0, 0, 0.45) 82%,
    transparent 94%
  );
  mask-image: linear-gradient(
    to right,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.92) 72%,
    rgba(0, 0, 0, 0.45) 82%,
    transparent 94%
  );
  overflow: hidden;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.section-head .head-heading-card__panel::after {
  display: none;
}

.section-head .head-heading-card__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(37, 145, 235, 0.14) 0%,
    rgba(37, 145, 235, 0.06) 38%,
    transparent 72%
  );
}

.section-head .head-heading-card__shine {
  position: absolute;
  top: 0;
  left: 0;
  width: 38%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 100%
  );
  transform: skewX(-14deg) translateX(-120%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
}

/* Static glow only — animated filter/opacity on backdrop-filter causes page flicker */
.section-head .head-heading-card--live .head-heading-card__panel::before {
  opacity: 0.3;
}

.section-head .head-heading-card--live .head-heading-card__shine {
  opacity: 0;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .section-head .head_ambient--live .head_ambient_grid {
    animation: none !important;
  }
}

.section-head .head-heading-card__brand {
  display: block;
  margin-bottom: 1.75rem !important;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(158, 198, 230, 0.95);
}

.section-head .head-heading-card__rule {
  width: 3.6rem;
  margin: 0 0 1.9rem;
  opacity: 0.85;
}

.section-head .head-heading-card__stack {
  display: block;
  width: 100%;
  max-width: 62%;
  box-sizing: border-box;
}

.section-head .head-heading-pro__statement.head-heading-card__headline {
  font-size: clamp(3.11rem, 5.09vw, 6.88rem) !important;
  line-height: 1.1 !important;
}

.section-head .head-heading-card__headline {
  margin-bottom: 2rem !important;
  font-size: clamp(3.11rem, 5.09vw, 6.88rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

.section-head .head-heading-card__headline em,
.section-head .head-heading-pro__statement.head-heading-card__headline em {
  display: inline !important;
  margin-top: 0;
  white-space: inherit;
  color: rgba(255, 255, 255, 0.5);
}

.section-head .head-heading-card__text {
  width: 100%;
  max-width: 100%;
  white-space: normal !important;
  font-size: clamp(1.1rem, 1.485vw, 1.485rem) !important;
  line-height: 1.62 !important;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
  overflow-wrap: anywhere;
}

.section-head .head-heading-card__panel .head-heading-pro__cta {
  max-width: 62%;
}

.section-head .head-heading-card__text p {
  margin: 0;
}

.section-head .head-heading-card__text p + p {
  margin-top: 1.35rem;
}

.section-head .head-heading-card__lead {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.05em;
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

.section-head .head-heading-card__body {
  color: rgba(255, 255, 255, 0.8);
}

.section-head .head-heading-card__panel .head-heading-pro__cta {
  margin-top: 2.55rem;
  text-align: left;
}

.section-head .head-heading-card__panel .head-heading-pro__btn {
  display: inline-block;
  min-width: 22rem;
  border-radius: 0;
  border: 1px solid #2591eb;
  background: transparent;
  color: #ffffff;
  font-size: 1.2rem;
  text-transform: uppercase;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.section-head .head-heading-card__panel .head-heading-pro__btn:before {
  display: block;
  content: "";
  width: 5.5rem;
  height: 1px;
  background-color: #2591eb;
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: -1.7rem;
  transform: translateY(-50%);
  transition: width 0.3s ease-in-out;
}

.section-head .head-heading-card__panel .head-heading-pro__btn .main_btn_inner {
  height: 6rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  color: inherit;
}

.section-head .head-heading-card__panel .head-heading-pro__btn:hover {
  background: #2591eb;
  border-color: #2591eb;
  color: #ffffff;
}

.section-head .head-heading-card__panel .head-heading-pro__btn:hover:before {
  width: 0;
}





@media screen and (max-width: 991px) {
  .section-head .head-heading-card.head-heading-pro {
    width: calc(100% + max(0px, 50vw - 50%));
    max-width: none;
  }

  .section-head .head-heading-pro__frame.head-heading-card__panel,
  .section-head .head-heading-card__panel {
    padding: 3.5rem 3.6rem 3.8rem 3.6rem !important;
    border-radius: 18px 0 0 18px;
    -webkit-mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.9) 70%,
      rgba(0, 0, 0, 0.4) 82%,
      transparent 94%
    );
    mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 58%,
      rgba(0, 0, 0, 0.9) 70%,
      rgba(0, 0, 0, 0.4) 82%,
      transparent 94%
    );
  }

  .section-head .head-heading-card__stack,
  .section-head .head-heading-card__panel .head-heading-pro__cta {
    max-width: 82%;
  }

  .section-head .head-heading-card__headline {
    white-space: nowrap !important;
    font-size: clamp(2.78rem, 7.67vw, 4.5rem) !important;
  }

  .section-head .head-heading-card__text {
    font-size: 1.2rem !important;
    line-height: 1.58 !important;
  }
}

@media screen and (max-width: 600px) {
  .section-head .head-heading-card.head-heading-pro {
    width: calc(100% + max(0px, 50vw - 50%));
    max-width: none;
  }

  .section-head .head-heading-pro__frame.head-heading-card__panel,
  .section-head .head-heading-card__panel {
    padding: 2.3rem 1.5rem 2.55rem 1.5rem !important;
    border-radius: 16px 0 0 16px;
    -webkit-mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.85) 82%,
      transparent 96%
    );
    mask-image: linear-gradient(
      to right,
      #000 0%,
      #000 72%,
      rgba(0, 0, 0, 0.85) 82%,
      transparent 96%
    );
  }

  .section-head .head-heading-card__stack,
  .section-head .head-heading-card__panel .head-heading-pro__cta {
    max-width: 96%;
  }

  .section-head .head-heading-card__brand {
    letter-spacing: 0.2em;
    font-size: 0.66rem;
    padding: 0;
  }

  .section-head .head-heading-card__headline,
  .section-head .head-heading-pro__statement.head-heading-card__headline {
    white-space: normal !important;
    width: auto;
    font-size: clamp(2.45rem, 11.64vw, 3.11rem) !important;
  }

  .section-head .head-heading-card__headline em {
    display: inline !important;
    margin-top: 0;
  }

  .section-head .head-heading-card__lead {
    white-space: normal !important;
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .section-head .head-heading-card__panel .head-heading-pro__btn {
    min-width: 100%;
  }
}

/* Mobile menu — no slide-in offset (items stay aligned on first open) */
.header_curtain_block .menu_bg,
.header_curtain_block .menu_bg.svg_converted {
  pointer-events: none;
  user-select: none;
}

.header_curtain_block_content {
  position: relative;
  z-index: 2;
}

body.menu_opened .header .main_logo {
  visibility: hidden;
}

/* Partners — uniform cells and logo boxes */
.section-partners .partners_slider .slick-slide {
  vertical-align: top;
}

.section-partners .partners_slide {
  width: 100% !important;
  height: 28.8rem !important;
  min-height: 28.8rem !important;
  max-height: 28.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2.5rem 2rem !important;
  box-sizing: border-box !important;
}

.section-partners .partners_slide img,
.section-partners .partners_slide svg {
  display: block !important;
  width: 14rem !important;
  height: 14rem !important;
  max-width: 14rem !important;
  max-height: 14rem !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  flex-shrink: 0 !important;
}

@media screen and (max-width: 1599px) {
  .section-partners .partners_slide {
    height: 21rem !important;
    min-height: 21rem !important;
    max-height: 21rem !important;
  }
}

@media screen and (max-width: 600px) {
  .section-partners .partners_slide {
    height: 18rem !important;
    min-height: 18rem !important;
    max-height: 18rem !important;
    padding: 2rem 1.5rem !important;
  }

  .section-partners .partners_slide img,
  .section-partners .partners_slide svg {
    width: 11rem !important;
    height: 11rem !important;
    max-width: 11rem !important;
    max-height: 11rem !important;
  }
}

.fullpage_wrapper > .section:not(.active) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none;
}

.fullpage_wrapper > .section.active {
  display: block !important;
  visibility: visible !important;
}

.side_description_num {
  will-change: transform, opacity;
}

.service_content_link.active {
  color: #2591eb;
}

#contact-form .submit_btn {
  margin-top: 1.5rem;
}



/* Inner pages — institutional footer */
.footer.footer-inst {
  padding: 6rem 2rem 4rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.15rem;
  line-height: 1.65;
}

.footer.footer-inst .footer_line:not(:last-child) {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer.footer-inst .screen_content {
  max-width: 140rem;
}

.footer.footer-inst .screen_content.footer-inst__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 4rem;
}

.footer.footer-inst .screen_content.footer-inst__bottom-inner {
  display: block;
}

.footer .footer-inst__heading {
  margin: 0 0 1.4rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(158, 198, 230, 0.92);
}



.footer .footer-inst__brand {
  margin: 0 0 1rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #ffffff;
}

.footer .footer-inst__tagline {
  margin: 0;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.footer .footer-inst__tagline em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.88);
}

.footer .footer-inst__line {
  margin: 0;
  font-family: Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.58);
}

.footer .footer-inst__line + .footer-inst__line {
  margin-top: 0.65rem;
}

.footer .footer-inst__line a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .footer-inst__line a:hover {
  color: #7eb8e8;
}

.footer .footer-inst__meta {
  margin: 1.2rem 0 0;
  font-family: Montserrat-Regular, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

.footer .footer-inst__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: Montserrat-Regular, sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.5;
}

.footer .footer-inst__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer .footer-inst__nav a,
.footer .footer-inst__legal a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer .footer-inst__nav a:hover,
.footer .footer-inst__legal a:hover {
  color: #ffffff;
}

.footer .footer-inst__dot {
  color: rgba(37, 145, 235, 0.45);
  user-select: none;
}

.footer .footer-inst__subheading {
  margin: 1.4rem 0 0;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(158, 198, 230, 0.88);
}

.footer .footer-inst__standards .footer-inst__prose {
  margin: 0;
  max-width: 110rem;
  font-family: Montserrat-Regular, sans-serif;
  font-size: 1.02rem;
  line-height: 1.72;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.footer .footer-inst__reg-heading {
  margin: 0 0 0.8rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(158, 198, 230, 0.75);
}

.footer .footer-inst__prose {
  margin: 0;
  max-width: 110rem;
  font-family: Montserrat-Regular, sans-serif;
  line-height: 1.72;
  letter-spacing: 0.02em;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.footer .footer-inst__standards .footer-inst__prose {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer .footer-inst__regulatory .footer-inst__prose {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer .footer-inst__disclaimer .footer-inst__prose {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer .footer-inst__inline-dot {
  color: rgba(37, 145, 235, 0.45);
  user-select: none;
}

.footer .footer-inst__bottom-inner {
  padding-top: 0.5rem;
}

.footer-inst__bottom-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}

.footer .footer-inst__copy {
  margin: 0;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

@media screen and (max-width: 1199px) {
  .footer .footer-inst__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.8rem 3rem;
  }
}

@media screen and (max-width: 767px) {
  .footer.footer-inst {
    padding: 4.5rem 1.6rem 3rem;
  }

  .footer.footer-inst .footer_line:not(:last-child) {
    padding-bottom: 2.2rem;
    margin-bottom: 2.2rem;
  }

  .footer .footer-inst__grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .footer .footer-inst__nav,
  .footer .footer-inst__legal,
  .footer .footer-inst__copy {
    letter-spacing: 0.1em;
  }
}

/* Section nav arrows — original bernardgroup.us (main.css + fix.css) */
.section-head .xs-head-btn {
  z-index: 6;
  pointer-events: auto;
}

@media screen and (max-width: 991px) {
  @keyframes bg-mobile-arrow-float {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.72;
    }
    50% {
      transform: translateY(1.4rem);
      opacity: 1;
    }
  }

  @keyframes bg-mobile-arrow-line {
    0%, 100% {
      transform: scaleY(0.55);
      opacity: 0.45;
    }
    50% {
      transform: scaleY(1);
      opacity: 1;
    }
  }

  @keyframes bg-mobile-arrow-tip {
    0%, 100% {
      transform: rotate(45deg) translateY(0);
      opacity: 0.75;
    }
    50% {
      transform: rotate(45deg) translateY(0.5rem);
      opacity: 1;
    }
  }

  .xs-head-btn {
    display: block !important;
    left: auto !important;
    right: 1.4rem !important;
    top: auto !important;
    bottom: 2.4rem !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0.6rem !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    z-index: 6;
  }

  .xs-head-btn:hover,
  .xs-head-btn:focus-visible {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .fullpage_wrapper > .section.active .section_right_block {
    display: block !important;
    width: auto !important;
    height: auto !important;
    left: auto !important;
    right: 1.4rem !important;
    top: auto !important;
    bottom: 2.4rem !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    pointer-events: none;
    z-index: 4;
  }

  .fullpage_wrapper > .section.active .section_right_block .section_right_trigger {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0.6rem !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    pointer-events: auto;
  }

  .fullpage_wrapper > .section.active .section_right_block .section_right_trigger:hover,
  .fullpage_wrapper > .section.active .section_right_block .section_right_trigger:focus-visible {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .fullpage_wrapper > .section.active .section_right_block .section_right_trigger.prev_trigger {
    display: none !important;
  }

  .fullpage_wrapper > .section.active .section_right_title {
    display: none !important;
  }

  .xs-head-btn .section_arrow,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow {
    width: 2.4rem !important;
    height: 8.4rem !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    animation: bg-mobile-arrow-float 2.6s ease-in-out infinite;
    filter: drop-shadow(0 2px 10px rgba(37, 145, 235, 0.28));
  }

  .xs-head-btn .section_arrow.rotated {
    transform: none !important;
  }

  .xs-head-btn .section_arrow img,
  .xs-head-btn .section_arrow svg,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow img,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow svg {
    display: none !important;
  }

  .xs-head-btn .section_arrow::before,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow::before {
    content: "";
    display: block;
    width: 2px;
    height: 5.6rem;
    border-radius: 1px;
    background: linear-gradient(
      180deg,
      rgba(37, 145, 235, 0.05) 0%,
      rgba(37, 145, 235, 0.55) 45%,
      #2591eb 100%
    );
    transform-origin: top center;
    animation: bg-mobile-arrow-line 2.6s ease-in-out infinite;
  }

  .xs-head-btn .section_arrow::after,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow::after {
    content: "";
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.5rem;
    border-right: 2.5px solid #2591eb;
    border-bottom: 2.5px solid #2591eb;
    box-sizing: border-box;
    animation: bg-mobile-arrow-tip 2.6s ease-in-out infinite;
  }

  .xs-head-btn:hover .section_arrow,
  .fullpage_wrapper > .section.active .section_right_block .section_right_trigger:hover .section_arrow {
    filter: drop-shadow(0 4px 14px rgba(37, 145, 235, 0.45));
  }
}

@media screen and (max-width: 991px) and (prefers-reduced-motion: reduce) {
  .xs-head-btn .section_arrow,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow {
    animation: none !important;
    opacity: 0.9;
  }

  .xs-head-btn .section_arrow::before,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow::before,
  .xs-head-btn .section_arrow::after,
  .fullpage_wrapper > .section.active .section_right_block .section_arrow::after {
    animation: none !important;
  }
}

@media screen and (min-width: 992px) {
  .xs-head-btn {
    display: none !important;
  }

  .fullpage_wrapper > .section.active .section_right_block {
    display: block !important;
  }
}

/* Mobile — full-width content, no side rail */
@media screen and (max-width: 767px) {
  .page_rail {
    display: none !important;
  }

  .fullpage_wrapper > .section.active {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .services_content {
    width: 100% !important;
    padding-top: 7.5rem !important;
  }

  .section-about .services_content_sides,
  .section-services .services_content_sides,
  .section-articles .services_content_sides,
  .section-partners .services_content_sides,
  .section-slogan .services_content_sides,
  .section-contacts .services_content_sides {
    padding-left: 1.6rem !important;
    padding-right: 1.6rem !important;
  }

  .section-contacts {
    padding-right: 0 !important;
  }

  .section-contacts.active .service_left_bg {
    width: 100% !important;
  }

  .contact_sides {
    flex-direction: column !important;
    overflow: visible !important;
  }

  .contact_side.cta_side,
  .contact_blocks_side {
    width: 100% !important;
    height: auto !important;
    padding: 2.4rem 1.6rem !important;
  }

  /* Mobile: light background — dark text (main.css); override desktop dark_bg white */
  .section-contacts .contact_blocks_side.dark_bg .contact_block__content,
  .section-contacts .contact_blocks_side.dark_bg .contact_block__title {
    color: rgba(0, 0, 0, 0.6);
  }

  .section-contacts .contact_blocks_side.dark_bg .contact_block__text,
  .section-contacts .contact_blocks_side.dark_bg .contact_block__text a {
    color: #000;
  }

  .section-contacts .contact_blocks_side.dark_bg .contact_block__text a:hover {
    color: #2591eb;
  }

  .section-contacts .contact_blocks_side.dark_bg .contact_block__ico {
    border-color: rgba(0, 0, 0, 0.1);
  }

  .contact_side_list {
    height: auto !important;
    overflow: visible !important;
    padding-top: 0 !important;
  }

  .fullpage_wrapper > .section.active .gsap_el,
  .fullpage_wrapper > .section.active .service_content_links > li,
  .fullpage_wrapper > .section.active .contact_side_list > li,
  .fullpage_wrapper > .section.active .side_description_num {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  .side_description_num {
    display: none !important;
  }

  .section-head {
    overflow-x: clip;
    overflow-y: visible;
  }

  .section-head .section_content {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    padding-bottom: 4rem !important;
  }

  .section-head .head-heading-card.head-heading-pro {
    width: calc(100% + 1.2rem);
    margin-right: -1.2rem;
  }

  .section-head .head_navigation {
    display: none;
  }

  .section-head .head_top_menu {
    display: none;
  }



  .section-about .about-heading__label,
  .section-services .service-heading__title,
  .section-articles .news-heading__title,
  .section-contacts .contacts-heading__title,
  .section-partners .partners-heading__title {
    font-size: 2.4rem !important;
    line-height: 1.18 !important;
  }

  .section-about .about-heading,
  .section-services .service-heading,
  .section-articles .news-heading,
  .section-contacts .contacts-heading,
  .section-partners .partners-heading {
    padding-left: 0 !important;
    margin-bottom: 2rem !important;
  }

  .section-articles .news-heading::before,
  .section-partners .partners-heading::before {
    display: none;
  }

  .section-articles .sliders_heading {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1.2rem;
  }

  .section-articles .articles_slide__content .more_link::after {
    width: 4rem;
  }

  .section-articles .articles_slide__img {
    height: 16rem !important;
    min-height: 16rem !important;
  }

  .section-partners .partners_slide {
    height: 15rem !important;
    min-height: 15rem !important;
    max-height: 15rem !important;
    padding: 1.5rem 1rem !important;
  }

  .section-partners .partners_slide img,
  .section-partners .partners_slide svg {
    width: 9rem !important;
    height: 9rem !important;
    max-width: 9rem !important;
    max-height: 9rem !important;
  }

}
