:root {
  --sp-shell-max: 1380px;
  --sp-blue: #0078d4;
  --sp-blue-dark: #075985;
  --sp-navy: #062f49;
  --sp-text: #24364b;
  --sp-muted: #64748b;
  --sp-line: #dbe7f0;
  --sp-surface: #ffffff;
}

body {
  color: var(--sp-text);
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.sp-shell-container {
  width: min(calc(100% - 48px), var(--sp-shell-max));
  margin-inline: auto;
}

#header.sp-site-header {
  z-index: 100000 !important;
  height: 88px;
  padding: 0;
  overflow: visible;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 8px 28px rgba(15, 50, 75, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sp-site-header .sp-shell-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: nowrap;
}

.sp-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.sp-brand img {
  display: block;
  width: 184px;
  max-height: 54px;
  object-fit: contain;
}

.sp-navbar {
  padding: 0;
  margin-left: auto;
}

.sp-navbar > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.sp-navbar > ul > li {
  padding: 0;
}

.sp-navbar a.nav-link {
  position: relative;
  padding: 12px 15px;
  color: #34465a;
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sp-navbar a.nav-link:hover,
.sp-navbar a.nav-link:focus,
.sp-navbar a.nav-link.active {
  color: var(--sp-blue);
}

.sp-navbar a.nav-link.active::after {
  position: absolute;
  right: 15px;
  bottom: 3px;
  left: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--sp-blue);
  content: "";
}

.sp-navbar .sp-account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-left: 10px;
  padding: 10px 20px;
  color: #ffffff;
  background: var(--sp-blue);
  border: 1px solid var(--sp-blue);
  border-radius: 6px;
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sp-navbar .sp-account-link:hover,
.sp-navbar .sp-account-link:focus {
  color: #ffffff;
  background: #106ebe;
  border-color: #106ebe;
  transform: translateY(-1px);
}

#header .sp-mobile-menu-toggle {
  display: none !important;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--sp-blue-dark);
  background: transparent;
  border: 0;
  border-radius: 8px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

#header .sp-mobile-menu-toggle:hover,
#header .sp-mobile-menu-toggle:focus {
  background: #edf8ff;
  outline: none;
}

.sp-hamburger-lines {
  display: grid;
  width: 30px;
  gap: 6px;
}

.sp-hamburger-lines span {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 4px;
  background: var(--sp-blue-dark);
}

.sp-mobile-drawer {
  display: none;
}

.sp-site-footer {
  position: relative;
  margin-top: 72px;
  color: #dbeafe;
  background: linear-gradient(135deg, #073b5b 0%, var(--sp-navy) 58%, #05283e 100%);
}

.sp-footer-accent {
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, var(--sp-blue), #7dd3fc);
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.8fr 0.9fr 1.25fr;
  gap: 58px;
  padding-top: 64px;
  padding-bottom: 54px;
}

.sp-footer-logo {
  display: inline-flex;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 6px;
}

.sp-footer-logo img {
  width: 220px;
  max-height: 62px;
  object-fit: contain;
}

.sp-footer-brand > p {
  max-width: 410px;
  margin: 22px 0 24px;
  color: #bfdbed;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.sp-site-footer h2 {
  margin: 8px 0 22px;
  color: #ffffff;
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.sp-footer-links {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-footer-links a,
.sp-footer-contact a {
  color: #bfdbed;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sp-footer-links a:hover,
.sp-footer-contact a:hover {
  color: #ffffff;
}

.sp-footer-contact {
  display: grid;
  gap: 14px;
  margin: 0;
  font-style: normal;
}

.sp-footer-contact p {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  color: #bfdbed;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.sp-footer-contact i {
  margin-top: 2px;
  color: #7dd3fc;
  font-size: 16px;
}

.sp-social-links {
  display: flex;
  gap: 10px;
}

.sp-social-links a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(186, 230, 253, 0.2);
  border-radius: 6px;
  font-size: 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sp-social-links a:hover {
  color: #ffffff;
  background: var(--sp-blue);
  transform: translateY(-2px);
}

.sp-x-icon {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.sp-footer-bottom {
  border-top: 1px solid rgba(186, 230, 253, 0.14);
  background: rgba(2, 25, 40, 0.28);
}

.sp-footer-bottom .sp-shell-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.sp-footer-bottom p {
  margin: 0;
  color: #9fc4da;
  font-size: 13px;
  font-weight: 300;
}

@media (max-width: 1199px) {
  .sp-brand img {
    width: 168px;
  }

  .sp-navbar a.nav-link {
    padding-inline: 10px;
    font-size: 14px;
  }

  .sp-navbar .sp-account-link {
    margin-left: 4px;
    padding-inline: 15px;
  }

  .sp-footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .sp-footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 991px) {
  .sp-shell-container {
    width: min(calc(100% - 32px), var(--sp-shell-max));
  }

  #header.sp-site-header {
    height: 76px;
  }

  .sp-brand img {
    width: 158px;
    max-height: 48px;
  }

  #header .sp-navbar {
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
  }

  #header .sp-navbar > ul {
    display: none !important;
  }

  #header .sp-mobile-menu-toggle {
    display: inline-flex !important;
    position: relative;
    z-index: 2;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 0 0 48px;
  }

  .sp-mobile-drawer {
    position: fixed;
    inset: 0;
    display: block;
    z-index: 2147483000 !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.25s ease, opacity 0.25s ease;
  }

  .sp-mobile-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .sp-mobile-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(3, 30, 47, 0.72);
    border: 0;
    backdrop-filter: blur(5px);
  }

  .sp-mobile-panel {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    padding: 0 18px 28px;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -24px 0 70px rgba(2, 32, 50, 0.25);
    transform: translateX(102%);
    transition: transform 0.25s ease;
  }

  .sp-mobile-drawer.is-open .sp-mobile-panel {
    transform: translateX(0);
  }

  .sp-mobile-panel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    margin: 0 -18px 14px;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--sp-line);
    color: var(--sp-navy);
    font-size: 18px;
    font-weight: 500;
  }

  .sp-mobile-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--sp-blue-dark);
    background: #edf8ff;
    border: 1px solid #cfeafa;
    border-radius: 7px;
    font-size: 20px;
    cursor: pointer;
  }

  .sp-mobile-panel nav {
    display: grid;
    gap: 7px;
  }

  .sp-mobile-panel nav a {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 11px;
    align-items: center;
    min-height: 50px;
    padding: 11px 13px;
    color: #334b5f;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 400;
  }

  .sp-mobile-panel nav a i {
    color: var(--sp-blue);
    font-size: 19px;
    text-align: center;
  }

  .sp-mobile-panel nav a:hover,
  .sp-mobile-panel nav a.active {
    color: #075985;
    background: #edf8ff;
  }

  .sp-mobile-panel nav a.sp-mobile-account {
    width: 100%;
    margin-top: 9px;
    color: #ffffff;
    background: var(--sp-blue);
  }

  .sp-mobile-panel nav a.sp-mobile-account i {
    color: #ffffff;
  }

  body.sp-mobile-menu-open {
    overflow: hidden !important;
  }

  .sp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px;
  }

  .sp-footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .sp-shell-container {
    width: min(calc(100% - 24px), var(--sp-shell-max));
  }

  .sp-brand img {
    width: 150px;
  }

  .sp-footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .sp-footer-brand {
    grid-column: auto;
  }

  .sp-footer-bottom .sp-shell-container {
    display: grid;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
