nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #d8e1ea;
  padding: 14px 24px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
header h1 {
  word-break: keep-all;
}
@media (max-width:700px){
  header h1{
    font-size:2rem;
    line-height:1.25;
  }
}
.nav-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1rem;
  font-weight: 800;
  color: #061426;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.dropbtn {
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  color: #061426;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

nav a:hover,
.dropbtn:hover {
  background: #edf4fb;
  color: #0f4c81;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 10px;
  color: #061426;
  font-weight: 700;
  font-size: 0.92rem;
}

.dropbtn:hover {
  background: #edf4fb;
  color: #0f4c81;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(6,20,38,0.18);
  border: 1px solid #e2e8f0;
  z-index: 999;
  overflow: hidden;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 9px 12px;
  color: #061426;
  text-decoration: none;
  font-weight: 600;
}

.dropdown-content a:hover {
  background: #f4f8fc;
  color: #0f4c81;
}

@media (max-width: 920px) {

  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    width: 100%;
    justify-content: flex-start;
  }

  .dropdown-content {
    position: relative;
    top: 8px;
    box-shadow: none;
    border: 1px solid #dce6f0;
  }

}

@media (max-width: 700px) {
  nav {
    padding: 14px 16px;
  }

  .nav-wrapper {
    gap: 14px;
  }

  .logo {
    font-size: 0.95rem;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    width: 100%;
  }

  nav a,
  .dropbtn {
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    width: 100%;
    min-width: unset;
    margin-top: 8px;
  }

  .dropdown-content a {
    text-align: center;
    padding: 11px 12px;
  }
}

@media (max-width: 700px) {
  header {
    padding: 60px 22px 46px;
  }

  header h1 {
    font-size: 2.35rem;
    letter-spacing: 0.12em;
    line-height: 1.35;
  }

  header p {
    font-size: 1.05rem;
    line-height: 1.55;
  }
}