body {
  margin: 0;
}

/* FIX: prevent horizontal overflow on some laptop widths */
html, body {
  overflow-x: hidden;
}

#prh_header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  font-family: "Noto Sans", Arial, sans-serif;
  z-index: 5000;
  box-sizing: border-box;
}

#prh_header .prh-box {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 28px;
  box-sizing: border-box;
  font-family: "Noto Sans", Arial, sans-serif;
  /* FIX: allow grid children to shrink instead of forcing overflow */
  min-width: 0;
}

.prh-content {
  grid-column: 2 / 4;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 28px;
  font-family: "Noto Sans", Arial, sans-serif;
  /* FIX */
  min-width: 0;
}

.prh-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.prh-menu {
  grid-column: 1;
  justify-self: center;
  position: relative;
  font-family: "Noto Sans", Arial, sans-serif;
  /* FIX */
  min-width: 0;
}

.prh-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  overflow: visible;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-link,
.prh-toggle {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  color: #0f172a;
  padding: 6px 0;
  line-height: 1;
  transition: color 0.18s ease;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-link:hover,
.prh-toggle:hover {
  color: #0284c7;
}

.prh-caret {
  font-size: 12px;
  transform: translateY(1px);
  transition: transform 0.18s ease;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-has-submenu {
  position: relative;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-submenu-wrap {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.1);
  padding: 8px 0;
  display: none;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-has-submenu:hover > .prh-submenu-wrap,
.prh-has-submenu:focus-within > .prh-submenu-wrap {
  display: block;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-submenu-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #334155;
  text-decoration: none;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-submenu-link:hover {
  background: #f1f5f9;
  color: #0284c7;
}

.prh-cta {
  grid-column: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-left: 28px;
  border-left: 2px solid #cbd5e1;
  min-width: max-content;
  font-family: "Noto Sans", Arial, sans-serif;
  /* FIX */
  max-width: 100%;
  box-sizing: border-box;
}

.prh-download a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0284c7;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-download a svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-download a span {
  display: block;
  text-align: center;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #1c2753;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(28, 39, 83, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-btn a:hover {
  background: #121a3c;
  transform: translateY(-1px);
}

.prh-btn a svg {
  flex-shrink: 0;
  width: 25px;
  height: 20px;
  font-family: "Noto Sans", Arial, sans-serif;
}

.prh-lang {
  display: flex;
  align-items: center;
  gap: 10px;
  order: 3;
}

.prh-cta {
  display: flex;
}
.prh-download {
  order: 1;
}
.prh-btn--mail {
  order: 2;
}
.prh-btn--burger {
  order: 4;
}

.prh-lang .flag-link {
  flex: 0 0 auto;
}

/* ---- Burger (base hidden on desktop) ---- */
.prh-btn--burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: #1c2753;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* FIX: ensure burger itself never forces overflow */
  flex-shrink: 0;
}

.prh-btn--burger .prh-burger-lines,
.prh-btn--burger .prh-burger-lines::before,
.prh-btn--burger .prh-burger-lines::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}
.prh-btn--burger .prh-burger-lines::before { top: -6px; }
.prh-btn--burger .prh-burger-lines::after  { top:  6px; }

/* Ensure icons visible on laptop/desktop (if older rules linger elsewhere) */
@media (min-width: 768px) {
  #prh_header .prh-cta .prh-btn--mail a > * {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  #prh_header .prh-cta .prh-btn--mail a::before {
    content: none !important;
  }
}

/* =================== >=1920px =================== */
@media screen and (min-width: 1920px) {
  #prh_header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto !important;
  }

  #prh_header .prh-box {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 16px 48px !important;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 48px !important;
    box-sizing: border-box;
    margin-left: 0 !important;
  }

  .prh-logo-img {
    height: 72px !important;
  }
  .prh-menu {
    display: block !important;
  }
  .prh-menu-list {
    gap: 48px !important;
  }

  .prh-link,
  .prh-toggle {
    font-size: 24px !important;
  }
  .prh-submenu-link {
    font-size: 18px !important;
  }

  .prh-cta {
    gap: 40px !important;
    padding-left: 48px !important;
  }

  .prh-download a {
    font-size: 20px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
  }

  .prh-btn a {
    padding: 20px 40px !important;
    font-size: 20px !important;
    border-radius: 9999px !important;
    box-shadow: 0 8px 24px rgba(28, 39, 83, 0.25) !important;
  }

  .prh-btn--mail a svg {
    width: 28px;
    height: 28px;
    display: inline;
  }
  .prh-lang {
    gap: 12px;
  }
  .flag-icon {
    width: 40px;
    height: 28px;
  }
}

/* ========== 1200–1919px ========== */
@media screen and (min-width: 1200px) and (max-width: 1919px) {
  #prh_header {
    width: 100% !important;
  }

  #prh_header .prh-box {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    column-gap: 18px !important;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    box-sizing: border-box;
  }

  .prh-logo-img {
    height: 45px !important;
  }

  .prh-menu {
    display: block !important;
  }
  .prh-menu-list {
    gap: 20px !important;
  }
  .prh-link,
  .prh-toggle {
    font-size: 16px !important;
  }
  .prh-submenu-link {
    font-size: 16px !important;
  }

  .prh-cta {
    gap: 20px !important;
    padding-left: 10px !important;
  }

  .prh-btn a {
    padding: 16px 20px !important;
    font-size: 16px !important;
  }

  .prh-download a {
    font-size: 16px !important;
  }
  .prh-lang {
    gap: 10px;
  }
  .flag-icon {
    width: 34px;
    height: 24px;
  }
}

/* ========== 768–1199px ========== */
@media screen and (min-width: 768px) and (max-width: 1199px) {
  #prh_header .prh-box {
    padding: 12px 16px;
    column-gap: 20px;
  }
  .prh-logo-img {
    height: 36px;
  }

  .prh-menu {
    display: block;
  }
  .prh-menu-list {
    gap: 28px;
  }
  .prh-link,
  .prh-toggle {
    font-size: 15px;
  }
  .prh-submenu-link {
    font-size: 14px;
  }
  .prh-submenu-wrap {
    min-width: 200px;
  }

  .prh-cta {
    gap: 14px;
    padding-left: 18px;
  }
  .prh-btn a {
    padding: 12px 20px;
    font-size: 15px;
  }
  .prh-download a span {
    display: block;
  }
  .prh-download a::before {
    content: none;
  }
  .prh-btn--mail a::before {
    content: none;
  }
  .prh-btn--mail a svg {
    display: inline;
  }
  .prh-lang {
    gap: 10px;
  }
  .flag-icon {
    width: 30px;
    height: 22px;
  }
}

/* ========== <=767px (mobile) ========== */
@media (max-width: 767px) {
  #prh_header .prh-cta .prh-btn--mail a,
  #prh_header .prh-cta .prh-btn--mail .prh-mail-trigger {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #1c2753 !important;
    box-shadow: none;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
    position: relative;
  }

  #prh_header .prh-cta .prh-btn--mail a > *,
  #prh_header .prh-cta .prh-btn--mail .prh-mail-trigger > * {
    display: none !important;
  }

  #prh_header .prh-cta .prh-btn--mail a::before,
  #prh_header .prh-cta .prh-btn--mail .prh-mail-trigger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  #prh_header .prh-box {
    padding: 10px 10px;
    grid-template-columns: auto 1fr auto;
  }
  .prh-logo-img {
    height: 30px;
  }

  #prh_header .prh-menu {
    display: none !important;
  }

  #prh_header .prh-cta .prh-download a {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef1f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }
  #prh_header .prh-cta .prh-download a span {
    display: none !important;
  }
  #prh_header .prh-cta .prh-download a::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-image: url("../images/download.png"),
      url("../images/download.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: invert(13%) sepia(22%) saturate(1163%) hue-rotate(195deg)
      brightness(92%) contrast(93%);
  }

  #prh_header .prh-cta .prh-btn--mail a {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #1c2753 !important;
    box-shadow: none;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
  }
  #prh_header .prh-cta .prh-btn--mail a > * {
    display: none !important;
  }
  #prh_header .prh-cta .prh-btn--mail a::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  /* SHOW MENU when burger toggles the body class */
  body.prh-menu-open #prh_header .prh-menu {
    display: block !important;
    position: fixed;
    left: 0;
    right: 0;
    top: calc(56px + 8px);
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 14px 18px;
    z-index: 5001;
    width: 100%;
    /* FIX: avoid panel overflow; let it scroll inside */
    max-height: calc(100vh - (56px + 8px));
    overflow-y: auto;
  }

  .prh-menu-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    white-space: normal;
  }
  .prh-link,
  .prh-toggle {
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 700;
  }
  .prh-submenu-wrap {
    position: static;
    display: none;
    padding: 4px 0 10px;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .prh-toggle[aria-expanded="true"] + .prh-submenu-wrap {
    display: block;
  }

  .prh-lang {
    order: 3;
    gap: 8px;
    margin-left: 6px;
  }

  .flag-icon {
    width: 28px;
    height: 20px;
  }

  .prh-cta {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  body.prh-menu-open .prh-cta {
    flex-wrap: wrap;
  }

  .prh-lang .flag-link {
    padding: 0;
  }
}

@media (max-width: 767px) {
  #prh_header .prh-cta .prh-btn--mail {
    display: none !important;
  }
  .prh-btn--burger {
    display: inline-flex;
  }
}
