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

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

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

/* 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;
}

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 .about-prose,
.section-services .service-prose {
  max-width: 62rem;
  padding-left: 0 !important;
  line-height: 1.75;
  color: #2a3340;
  text-align: left;
}

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

.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-services .service-prose p {
  margin: 0;
  max-width: 62rem;
}

.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 2.8rem;
}

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

.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 {
  margin-bottom: 2rem;
  align-items: flex-end;
}

/* 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 — equal size in slider */
.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%;
  background: #fff;
  border: 1px solid rgba(32, 64, 163, 0.1);
  box-shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.section-articles .articles_slide__img {
  height: 22rem;
  min-height: 22rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.section-articles .articles_slide:hover {
  box-shadow: 0 6px 24px rgba(10, 22, 40, 0.1);
  transform: translateY(-2px);
}

.section-articles .articles_slide__img::before {
  background: rgba(4, 50, 87, 0.28) !important;
}

.section-articles .articles_slide:hover .articles_slide__img::before {
  background: rgba(4, 50, 87, 0.18) !important;
}

.section-articles .articles_slide__date {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(4, 50, 87, 0.82);
  padding: 0.5rem 1rem;
}

.section-articles .articles_slide__content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 2rem 2.2rem 2.4rem;
}

.section-articles .articles_slide__category {
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5d6b7a;
  margin-bottom: 0.8rem;
}

.section-articles .articles_slide__title {
  font-family: Montserrat-Medium, Montserrat-Bold, sans-serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: #043257;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 3);
}

.section-articles .articles_slide__description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #3d4a59;
  margin-bottom: 1.4rem;
  flex: 1 1 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.section-articles .articles_slide__more {
  margin-top: auto;
}

.section-articles .articles_slide__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2040a3;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-articles .articles_slide__more:hover {
  color: #2591eb;
  border-bottom-color: #2591eb;
}

.section-articles .articles_slide__more::after {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='none' stroke='%232040a3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M3 9h10M10 5l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.section-articles .articles_slide__more:hover::after {
  transform: translateX(2px);
}

/* 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__inner {
  max-width: 78rem;
  padding: 1rem 0 1rem 3.2rem;
  border-left: 3px solid #2591eb;
}

.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-disclaimer strong {
  font-family: Montserrat-Medium, Montserrat-Bold, sans-serif;
  font-weight: 600;
  color: #043257;
}

.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.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5d6b7a;
  margin-top: 2rem !important;
}

@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-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-slogan .slogan-pro__statement {
    font-size: 2.6rem;
    line-height: 1.42;
  }

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

  .section-slogan .slogan-pro__inner {
    padding-left: 2rem;
    max-width: 100%;
  }

  .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: 2.2rem;
  }

  .section-articles .articles_slide__img {
    height: 18rem;
    min-height: 18rem;
  }

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

  .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;
  }

  .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;
  }
}

/* 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);
}

.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 (see body.head-intro-pending) */
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;
}

.section-head {
  overflow: visible;
}

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

.section-head .head_right_overlay {
  z-index: 2 !important;
}

/* 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;
  }
}

@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__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__frame {
    padding-left: 1.8rem;
  }

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

/* 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: flex;
}

.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: Raleway, Montserrat-Bold, sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: #ffffff;
}

.footer .footer-inst__tagline {
  margin: 0;
  font-family: 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,
.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 p {
  margin: 0;
  max-width: 90rem;
  font-family: Montserrat-Medium, Montserrat-Regular, sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.72);
}

.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__regulatory p,
.footer .footer-inst__disclaimer p {
  margin: 0;
  max-width: 110rem;
}

.footer .footer-inst__regulatory p:not(.footer-inst__reg-heading) {
  font-family: Montserrat-Regular, sans-serif;
  font-size: 0.82rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.38);
}

.footer .footer-inst__disclaimer p:not(.footer-inst__reg-heading) {
  font-family: Montserrat-Regular, sans-serif;
  font-size: 0.88rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.48);
}

.footer .footer-inst__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

.footer .footer-inst__copy {
  margin: 0;
  font-family: Montserrat-Regular, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

@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__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .footer-inst__copy {
    white-space: normal;
  }

  .footer .footer-inst__nav,
  .footer .footer-inst__legal {
    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: hidden;
    overflow-y: visible;
  }

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

  .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__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;
  }

}
