:root {
  --sd-navy: #17324d;
  --sd-blue: #1e5d87;
  --sd-gold: #c68b2c;
  --sd-pale: #f3f7fa;
  --sd-line: #d7e1e8;
}

body { overflow-x: hidden; }

#top {
  height: auto !important;
  min-height: 60px;
}

#top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(980px, calc(100% - 24px)) !important;
  min-height: 60px;
  height: auto !important;
  padding: 8px 0;
  box-sizing: border-box;
}

#top #logo {
  float: none !important;
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  height: auto !important;
}

#top #logo img {
  display: block;
  width: auto;
  max-width: 330px;
  height: auto;
}

.sd-header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sd-header-phone,
.sd-header-mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 14px;
  border-radius: 5px;
  box-sizing: border-box;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
}

.sd-header-phone {
  color: var(--sd-navy) !important;
  background: #fff;
  border: 1px solid #b8c9d5;
}

.sd-header-mail {
  color: #fff !important;
  background: var(--sd-gold);
  border: 1px solid #ad7620;
}

.sd-header-phone small { display: block; font-size: 10px; font-weight: 400; }

.sd-bottom-cta {
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 38px auto 24px;
  padding: 24px;
  border: 1px solid #cbdbe6;
  border-top: 4px solid var(--sd-blue);
  border-radius: 8px;
  background: #f7fbfe;
  box-sizing: border-box;
  text-align: center;
  color: #263746;
}

.sd-bottom-cta h2,
.sd-bottom-cta .sd-cta-title {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sd-navy);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 700;
}

.sd-bottom-cta p { margin: 0 0 14px; line-height: 1.8; }
.sd-cta-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sd-cta-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 12px 18px;
  border-radius: 5px;
  box-sizing: border-box;
  font-weight: 700;
  text-decoration: none !important;
}
.sd-cta-primary { color: #fff !important; background: var(--sd-gold); }
.sd-cta-secondary { color: #fff !important; background: var(--sd-blue); }
.sd-cta-note { margin-top: 10px !important; font-size: 12px; color: #607181; }

@media screen and (max-width: 700px) {
  #top .inner {
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px 0 10px;
  }
  #top #logo {
    flex: 0 0 100%;
  }
  #top #logo img { max-width: 245px; }
  #top .sd-header-cta {
    display: flex;
    flex: 0 0 100%;
    flex-direction: row;
    align-items: stretch;
    gap: 7px;
    width: 100%;
    margin: 0;
  }
  #top .sd-header-phone,
  #top .sd-header-mail {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 38px;
    padding: 6px 7px;
    font-size: 12px;
  }
  .sd-header-phone small { display: none; }
  .sd-bottom-cta { width: calc(100% - 24px); padding: 19px 14px; }
  .sd-bottom-cta h2, .sd-bottom-cta .sd-cta-title { font-size: 18px; }
  .sd-cta-actions { display: block; }
  .sd-cta-actions a { display: flex; width: 100%; margin-top: 8px; }
}
