.top-nav {
  border-bottom: 1px solid #dbe5f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.nav-inner {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  min-height: 0;
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
}

.brand img {
  width: auto;
  height: 42px;
  max-height: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 4px;
  width: 100%;
  margin-left: 0;
}

.nav-links a {
  position: relative;
  flex: 1 1 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.nav-links a + a::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  width: 1px;
  background: #dbe5f0;
}

.nav-links a:hover { background: rgba(37, 26, 20, .06); }

.phone {
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 12px;
    padding: 10px 16px;
  }

  .brand { padding: 4px; }
  .brand img { width: auto; height: 40px; }
  .nav-links { order: 3; width: 100%; gap: 3px; }
  .nav-links a { flex: 0 1 auto; padding: 7px 10px; }
  .nav-links a + a::before { display: none; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 9px 12px; }
  .brand img { width: auto; height: 34px; }
  .phone { padding: 9px 11px; font-size: 14px; }
}
