.modern-header {
  width: 100%;
  background: linear-gradient(to bottom, #ebe0c8 0 85%, #fff 85% 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.modern-header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 70px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.modern-logo {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  z-index: 4002;
}
.modern-logo img {
  height: 70px;
  width: auto;
  display: block;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.modern-logo img:hover {
  transform: scale(1.07);
}
.burger-menu {
  display: none;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.burger-menu span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: #2c5aa0;
  border-radius: 2px;
  transition: all 0.3s;
}
.modern-nav {
  justify-content: center;
  gap: 32px;
  font-size: 1.15em;
  display: flex;
}
.modern-nav a {
  color: #2c5aa0;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border 0.2s, color 0.2s;
}
.modern-nav a:hover {
  color: #1eb05a;
  border-bottom: 2px solid #1eb05a;
}
.modern-nav a.active {
  color: #1eb05a;
  border-bottom: 2px solid #1eb05a;
}
.modern-header-contact {
  position: absolute;
  right: 24px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  z-index: 4002;
  gap: 18px;
  font-size: 1.08em;
}
.modern-header-contact a {
  color: #2c5aa0;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.modern-header-contact a:hover {
  color: #1eb05a;
}
@media (min-width: 701px) {
  .modern-logo {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 4002;
  }
  .modern-nav a .nav-icon {
    display: none;
  }
  .modern-nav a span {
    display: inline-block;
  }
}
@media (max-width: 900px) {
  .modern-header-inner { flex-direction: column; height: auto; padding: 0 12px; }
  .modern-nav { gap: 18px; font-size: 1em; }
  .modern-header-contact { margin-top: 8px; }
}
@media (max-width: 700px) {
  .modern-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    padding: 0 8px;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    position: relative;
  }
  .modern-logo {
    margin: 0;
    margin-right: auto;
    padding: 0;
    position: static !important;
    z-index: 4002;
    order: 0;
    display: flex;
    align-items: center;
    left: unset !important;
    top: unset !important;
    bottom: unset !important;
    height: auto !important;
  }
  .modern-logo img {
    height: 50px !important;
    width: auto;
    margin: 0;
    padding: 0;
    display: block;
  }
  .burger-menu {
    right: 20px !important;
    top: 10px;
    width: 32px;
    height: 32px;
    display: flex !important;
    position: absolute;
    padding-right: 0;
    z-index: 2001;
  }
  .burger-menu span {
    width: 16px;
    height: 2px;
    margin: 2px 0;
    background: #2c5aa0;
    transition: none;
  }
  .modern-header-contact {
    display: none !important;
    position: static !important;
    right: unset !important;
    top: unset !important;
    bottom: unset !important;
    height: auto !important;
    margin-top: 8px;
  }
  .modern-nav {
    display: none !important;
    position: absolute;
    top: 84%;
    right: 0px;
    left: auto;
    width: 70px;
    max-width: 70px;
    background: #fffbe9;
    flex-direction: column;
    align-items: stretch;
    z-index: 1200;
    box-shadow: 0 8px 32px rgba(44,90,160,0.13);
    border-radius: 0 0 18px 18px;
    background-color:#ebe0c8;
    padding: 10px 0 10px 0;
    gap: 10px;
    justify-content: flex-start;
  }
  .modern-nav.open {
    display: flex !important;
  }
  .modern-nav a {
    justify-content: center;
    padding: 10px 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 0;
  }
  .modern-nav a span {
    display: none;
  }
  .modern-nav a .nav-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
    margin: 0;
  }
}
@media (max-width: 700px) {
  .modern-nav a span {
    display: none;
  }
  .modern-nav a .nav-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 0;
  }
}
