header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #143928dd;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 253, 247, 0.1);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  padding: 20px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.text_conainer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #f5ecd8;
  text-decoration: none;
}

.brand-tagline {
  color: rgba(245, 236, 216, 0.72);
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 10px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;


  display: block;
  align-self: center;
}

.brand-name {
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;


  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  justify-content: space-evenly;

  font-family: Arial, sans-serif;
  font-size: clamp(0.75rem, 1.3vw, 0.86rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  padding: 8px 12px;
  color: rgba(245, 236, 216, 0.86);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 4px;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(245, 236, 216, 0.12);
  color: #d8c88c;
  outline: none;
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
    padding: 20px 2%;
    min-height: auto;
    gap: 20px;
  }

  .brand {
    width: 100%;
    min-height: 58px;
    position: relative;
    justify-content: center;
  }

  .brand-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .text_conainer {
    text-align: center;
    justify-items: center;
    padding: 0 65px;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  nav a {
    padding: 6px 10px;
  }
}

@media (max-width: 440px) {
  .nav {
    padding: 12px 2%;
    gap: 12px;
  }

  .brand {
    flex-direction: column;
    min-height: auto;
    gap: 6px;
  }

  .brand-logo {
    position: static;
    transform: none;
    margin: 0 auto;
    width: 44px;
    height: 44px;
  }

  .text_conainer {
    padding: 0;
    text-align: center;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-tagline {
    font-size: 0.62rem;
    padding-top: 4px;
  }

  nav {
    gap: 4px 8px;
  }

  nav a {
    font-size: 0.72rem;
    padding: 4px 8px;
  }
}

@media (min-width: 1025px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 5%;
    gap: 60px;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .text_conainer {
    align-items: flex-start;
    text-align: left;
  }

  nav {
    width: auto;
    max-width: none;
    margin: 0;
    justify-content: flex-end;
    gap: 12px;
  }

  nav a {
    padding: 10px 18px;
  }
}
