.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: white;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: 0 5px 20px rgba(7, 24, 51, 0.12);
}

.navbar .container {
  width: min(1400px, calc(100% - 64px));
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  margin: 0 auto;
  padding: 10px 0;
}

.navbar .logo {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #15213a;
  line-height: 1;
}

.logo__signature {
  color: #bc1231;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 2rem;
  font-style: italic;
  letter-spacing: -0.06em;
}

.logo__surname {
  margin-top: -1px;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.navbar .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(15px, 2vw, 28px);
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.navbar .menu li {
  font-size: 0.78rem;
  font-weight: 600;
}

.navbar .menu a {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  color: inherit;
  transition: color 0.2s ease;
}

.navbar .menu a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: #ee1e3d;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.navbar .menu a:hover {
  color: #ee1e3d;
}

.navbar .menu a:hover::after {
  transform: scaleX(1);
}

.navbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.navbar .actions .primary {
  background: #d91532;
  color: white;
}

.navbar .actions .primary:hover {
  background: #b90f29;
}

.navbar .mb-menu {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
}

.home .navbar {
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  color: white;
}

.home .navbar.scrolled {
  position: fixed;
  background: rgba(6, 26, 55, 0.97);
}

.home .navbar .logo {
  color: white;
}

.home .navbar .logo__signature {
  color: #ff536b;
}

@media (max-width: 1000px) {
  .navbar .container {
    width: calc(100% - 44px);
    min-height: 74px;
    gap: 16px;
  }

  .navbar .menu {
    gap: 14px;
  }

  .navbar .menu li {
    font-size: 0.74rem;
  }

  .navbar .actions .btn {
    padding: 11px 13px;
    font-size: 0.7rem;
  }
}

@media (max-width: 820px) {
  .navbar .container {
    min-height: 70px;
  }

  .navbar .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    width: min(320px, calc(100vw - 40px));
    max-height: calc(100vh - 90px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #071a36;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
    color: white;
  }

  .navbar .menu.show {
    display: flex;
  }

  .navbar .menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
  }

  .navbar .menu li:last-child {
    border-bottom: 0;
  }

  .navbar .menu a {
    display: block;
    padding: 13px 0;
  }

  .navbar .menu a::after {
    display: none;
  }

  .navbar .mb-menu {
    display: grid;
  }

  .home .navbar .mb-menu {
    border-color: rgba(255, 255, 255, 0.38);
    color: white;
  }
}

@media (max-width: 520px) {
  .navbar .container {
    width: calc(100% - 36px);
    min-height: 68px;
  }

  .navbar .actions .btn {
    display: none;
  }
}
