.tr-mast {
  --tr-ink: #282b48;
  --tr-line: #d8dbea;
  --tr-font: "IBM Plex Sans", Arial, sans-serif;
  --tr-corner-reveal: 18px;
  position: sticky;
  top: 0;
  z-index: 995;
  isolation: isolate;
  box-sizing: border-box;
  font: 400 16px/1.5 var(--tr-font);
  letter-spacing: .02em;
  color: var(--tr-ink);
  background: linear-gradient(180deg, #fcfdff 32%, #e8edf6 100%);
}

.tr-mast *, .tr-mast *::before, .tr-mast *::after { box-sizing: border-box; }
.tr-mast a { color: inherit; text-underline-offset: .23em; }
.tr-mast :focus-visible { outline: 3px solid #5456ac; outline-offset: 3px; }

.tr-mast-plane {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(-7px 10px 8px rgb(25 43 73 / .15));
}

.tr-mast-plane::before,
.tr-mast-plane::after {
  content: "";
  position: absolute;
  inset-inline: var(--tr-corner-reveal);
}

.tr-mast-plane::before { inset-block: 0; background: #fff; }

.tr-mast-plane::after {
  z-index: -1;
  inset-block: 16px 1px;
  background: linear-gradient(90deg, rgb(25 43 73 / .32), rgb(25 43 73 / .22) 26%, rgb(25 43 73 / .08) 56%, transparent 82%);
  transform: translate(-11px, 10px);
  filter: blur(10px);
}

.tr-mast .tr-bar {
  width: min(calc(100% - 72px), 1192px);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
}

.tr-mast .tr-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.tr-mast .tr-brand img { flex: none; width: 60px; height: auto; }
.tr-mast .tr-brand span { max-width: 184px; font-size: 14px; font-weight: 500; line-height: 1.22; }

.tr-mast .tr-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.76vw, 27px);
  margin-inline-start: auto;
}

.tr-mast .tr-nav > a,
.tr-mast .tr-nav > details > summary,
.tr-mast .tr-nav-links > a {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 3px;
  color: var(--tr-ink);
  font: 500 17px/1.3 var(--tr-font);
  text-decoration: none;
  cursor: pointer;
}

.tr-mast .tr-nav summary { list-style: none; }
.tr-mast .tr-nav summary::-webkit-details-marker { display: none; }
.tr-mast .tr-nav summary:hover, .tr-mast .tr-nav a:hover { text-decoration: underline; }
.tr-mast .tr-dropdown { position: relative; }

.tr-mast .tr-nav-links {
  position: absolute;
  z-index: 2;
  min-width: 220px;
  inset: calc(100% + 10px) auto auto 0;
  padding: 7px;
  border: 1px solid var(--tr-line);
  background: #fff;
  box-shadow: 0 1px 0 #a7b5cd, 0 12px 22px -10px rgb(28 43 72 / .36);
}

.tr-mast .tr-nav-links > a { padding: 9px 11px; font-size: 16px; font-weight: 400; line-height: 1.5; }
.tr-mast .tr-quick { display: flex; align-items: center; gap: 15px; }

.tr-mast .tr-book {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 9px 20px;
  border-top: 1px solid #fff;
  border-right: 1px solid #a8c0e2;
  border-bottom: 1px solid #7191c2;
  border-left: 1px solid #84a2cf;
  border-radius: 0;
  background: linear-gradient(168deg, #f4f8ff 0%, #dfecfd 54%, #cbe0fa 100%);
  color: #162442;
  font: 600 16px/1.3 var(--tr-font);
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 #fff,
    -7px 9px 14px -3px rgb(25 43 73 / .26),
    -3px 5px 11px -1px rgb(64 122 218 / .26);
}

.tr-mast .tr-book:hover {
  border-right-color: #93b0dc;
  border-bottom-color: #5d82ba;
  border-left-color: #7093c7;
  background: linear-gradient(168deg, #f8fbff 0%, #d6e7fc 52%, #bfd8f8 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    -8px 10px 15px -3px rgb(25 43 73 / .29),
    -3px 6px 12px -1px rgb(58 118 218 / .3);
}

.tr-mast .tr-book:active {
  background: linear-gradient(168deg, #e7f0fd 0%, #d4e5fb 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    -4px 5px 8px -3px rgb(25 43 73 / .24),
    -2px 3px 6px -1px rgb(64 122 218 / .2);
}

.tr-mast .tr-write {
  order: -1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  color: #41445e;
  text-decoration: underline;
  text-decoration-color: #a1a5b4;
}

.tr-mast :is(.tr-menu-toggle, .tr-nav-utilities, .tr-write-short, .tr-it-call, .tr-it-write) { display: none; }

@media (min-width: 1120px) {
  .tr-mast .tr-nav { gap: clamp(22px, 1.9vw, 29px); }
  .tr-mast .tr-nav > a, .tr-mast .tr-nav > details > summary { padding-inline: 6px; }
}

@media (max-width: 991px) {
  body:has(> .tr-mast) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  html.t-mobile-ready body:has(> .tr-mast) { padding-top: 0; }
  body:has(> .tr-mast) :is(.t-mbar, .t-mmenu, .t-mcta, .button-nav) { display: none !important; }
  .tr-mast { --tr-corner-reveal: 6px; }
  .tr-mast-plane { filter: drop-shadow(-4px 7px 6px rgb(25 43 73 / .14)); }
  .tr-mast-plane::after { transform: translate(-5px, 7px); filter: blur(7px); }
  .tr-mast .tr-bar { min-height: 62px; justify-content: space-between; }
  .tr-mast .tr-brand { gap: 14px; }
  .tr-mast .tr-nav { flex-wrap: wrap; }

  .tr-mast.tr-interactive .tr-menu-toggle {
    display: grid;
    place-items: center;
    flex: none;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #34435f;
    cursor: pointer;
  }

  .tr-mast .tr-menu-icon { display: grid; gap: 4px; width: 22px; }
  .tr-mast .tr-menu-icon > span { height: 2px; background: currentColor; }
  .tr-mast.tr-interactive .tr-menu-toggle[aria-expanded="false"] + .tr-nav { display: none; }

  .tr-mast.tr-interactive .tr-nav {
    position: absolute;
    z-index: 3;
    inset: 100% 0 auto;
    display: grid;
    gap: 2px 0;
    overflow: auto;
    max-height: calc(100dvh - 140px);
    padding: 10px 20px;
    border-block: 1px solid var(--tr-line);
    background: #fff;
    box-shadow: 0 1px 0 #a7b5cd, 0 13px 20px -12px rgb(28 43 72 / .36);
  }

  .tr-mast .tr-nav > a, .tr-mast .tr-nav > details > summary { min-height: 52px; padding: 12px 0; }
  .tr-mast.tr-interactive .tr-nav > * + * { border-top: 1px solid #e1e6ef; }
  .tr-mast .tr-nav-links { position: static; min-width: 0; padding: 0 5px 6px 14px; border: 0; box-shadow: none; }
  .tr-mast .tr-nav-links > a { min-height: 48px; }
  .tr-mast .tr-nav-links > a + a { border-top: 1px solid #edf0f5; }
  .tr-mast .tr-nav-utilities { display: flex; flex-wrap: wrap; gap: 4px 24px; }
  .tr-mast .tr-nav-utilities > a { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; }

  .tr-mast:not(.tr-interactive) .tr-bar { flex-wrap: wrap; padding-block: 6px; }
  .tr-mast:not(.tr-interactive) .tr-nav { flex-basis: 100%; margin: 0; }

  .tr-mast .tr-quick {
    position: fixed;
    z-index: 996;
    inset: auto 0 0;
    justify-content: center;
    padding: 8px 16px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--tr-line);
    background: #fbfbfffa;
  }

  .tr-mast .tr-book {
    flex: 1;
    min-height: 47px;
    max-width: 335px;
    padding-inline: 14px;
    box-shadow:
      inset 0 1px 0 #fff,
      -4px 6px 10px -3px rgb(25 43 73 / .24),
      -2px 3px 8px -1px rgb(64 122 218 / .22);
  }
  .tr-mast .tr-write { order: 0; padding-inline: 8px; font-size: 16px; }
  .tr-mast .tr-write-wide { display: none; }
  .tr-mast .tr-write-short { display: inline; }
  .tr-mast .tr-quick-it > :is(.tr-book, .tr-write):not(.tr-it-call, .tr-it-write) { display: none; }
  .tr-mast .tr-quick-it > :is(.tr-it-call, .tr-it-write) { display: inline-flex; }
}

@media (max-width: 765px) {
  .tr-mast .tr-bar { width: calc(100% - 36px); }
}

@media (max-width: 359px) {
  .tr-mast .tr-bar { width: calc(100% - 20px); gap: 6px; }
  .tr-mast .tr-brand { gap: 10px; }
  .tr-mast .tr-brand img { width: 50px; }
}
